'Check that \'put\' uploads files correctly when overwriting a longer
file and you use a wildcard to specify the files to upload.'

def test_putMultipleOverLongerFile(self):

    someDir = self.testDir.child('dir')
    someDir.createDirectory()
    with someDir.child('file').open(mode='w') as f:
        f.write('a')
    with self.testDir.child('file').open(mode='w') as f:
        f.write('bb')
    def _checkPut(result):
        self.assertFilesEqual(someDir.child('file'), self.testDir.child('file'))
    d = self.runCommand(('put    %s/dir/*' % (self.testDir.path,)))
    d.addCallback(_checkPut)
    return d
