'When a gobbing expression is used local files are transferred with
remote file names based on local names.'

def test_cmd_PUTMultipleNoRemotePath(self):

    first = self.makeFile()
    firstName = os.path.basename(first)
    secondName = 'second-name'
    parent = os.path.dirname(first)
    second = self.makeFile(path=os.path.join(parent, secondName))
    flags = ((filetransfer.FXF_WRITE | filetransfer.FXF_CREAT) | filetransfer.FXF_TRUNC)
    firstRemotePath = ('/%s' % (firstName,))
    secondRemotePath = ('/%s' % (secondName,))
    firstRemoteFile = InMemoryRemoteFile(firstRemotePath)
    secondRemoteFile = InMemoryRemoteFile(secondRemotePath)
    self.fakeFilesystem.put(firstRemotePath, flags, defer.succeed(firstRemoteFile))
    self.fakeFilesystem.put(secondRemotePath, flags, defer.succeed(secondRemoteFile))
    deferred = self.client.cmd_PUT(os.path.join(parent, '*'))
    self.successResultOf(deferred)
    self.assertTrue(firstRemoteFile._closed)
    self.assertEqual('', firstRemoteFile.getvalue())
    self.assertTrue(secondRemoteFile._closed)
    self.assertEqual('', secondRemoteFile.getvalue())
    self.checkPutMessage([(first, firstRemotePath, ['100%    0.0B']), (second, secondRemotePath, ['100%    0.0B'])], randomOrder=True)
