#NEWLINE# def test_move_to_non_existing_folder( setup , launcher ) : #NEWLINE# #INDENT# A = TestDriver ( 'A' , folders = { #NEWLINE# #INDENT# 'foo' : 'foo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# B = TestDriver ( 'B' , folders = { #NEWLINE# #INDENT# 'foo' : 'Foo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# setup . add ( A ) #NEWLINE# setup . add ( B ) #NEWLINE# try : #NEWLINE# #INDENT# launcher ( ) #NEWLINE# launcher . copy_file ( 'foo' , 'test' , 10 , A , B ) #NEWLINE# loop = BooleanLoop ( ) #NEWLINE# launcher . on_deletion_completed ( loop . stop , driver = B , filename = 'test' ) #NEWLINE# A . rename ( 'foo/test' , 'bar/test' ) #NEWLINE# loop . run ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# launcher . close ( )