#NEWLINE# def test_update_size_from_source( setup , launcher ) : #NEWLINE# #INDENT# A = TestDriver ( 'A' , folders = { #NEWLINE# #INDENT# 'dir' : 'dir' , #NEWLINE# #UNINDENT# } ) #NEWLINE# B = TestDriver ( 'B' , folders = { #NEWLINE# #INDENT# 'dir' : 'dir' , #NEWLINE# #UNINDENT# } ) #NEWLINE# setup . folders = { #NEWLINE# #INDENT# 'dir' : { #NEWLINE# #INDENT# 'file_size' : { #NEWLINE# #INDENT# 'min' : 5 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# setup . add ( A ) #NEWLINE# setup . add ( B ) #NEWLINE# try : #NEWLINE# #INDENT# launcher ( ) #NEWLINE# loop = BooleanLoop ( ) #NEWLINE# launcher . on_event_folder_ignored_size ( loop . stop , folder = 'dir' , filename = 'test' , size = 3 ) #NEWLINE# launcher . copy_file ( 'dir' , 'test' , 3 , A ) #NEWLINE# loop . run ( timeout = 1 ) #NEWLINE# launcher . copy_file ( 'dir' , 'test' , 10 , A , B ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# launcher . close ( )