#NEWLINE# def test_cmd_PUTMultipleNoRemotePath( self ) : #NEWLINE# #INDENT# '\n        When a gobbing expression is used local files are transfered with\n        remote file names based on local names.\n        ' #NEWLINE# first = self . makeFile ( ) #NEWLINE# firstName = os . path . basename ( first ) #NEWLINE# secondName = 'second-name' #NEWLINE# parent = os . path . dirname ( first ) #NEWLINE# second = self . makeFile ( path = os . path . join ( parent , secondName ) ) #NEWLINE# flags = ( ( filetransfer . FXF_WRITE | filetransfer . FXF_CREAT ) | filetransfer . FXF_TRUNC ) #NEWLINE# firstRemotePath = ( '/%s' % ( firstName , ) ) #NEWLINE# secondRemotePath = ( '/%s' % ( secondName , ) ) #NEWLINE# firstRemoteFile = InMemoryRemoteFile ( firstRemotePath ) #NEWLINE# secondRemoteFile = InMemoryRemoteFile ( secondRemotePath ) #NEWLINE# self . fakeFilesystem . put ( firstRemotePath , flags , defer . succeed ( firstRemoteFile ) ) #NEWLINE# self . fakeFilesystem . put ( secondRemotePath , flags , defer . succeed ( secondRemoteFile ) ) #NEWLINE# deferred = self . client . cmd_PUT ( os . path . join ( parent , '*' ) ) #NEWLINE# self . successResultOf ( deferred ) #NEWLINE# self . assertTrue ( firstRemoteFile . closed ) #NEWLINE# self . assertEqual ( '' , firstRemoteFile . getvalue ( ) ) #NEWLINE# self . assertTrue ( secondRemoteFile . closed ) #NEWLINE# self . assertEqual ( '' , secondRemoteFile . getvalue ( ) ) #NEWLINE# self . checkPutMessage ( [ ( first , firstRemotePath , [ '100% 0.0B' ] ) , ( second , secondRemotePath , [ '100% 0.0B' ] ) ] , randomOrder = True )