#NEWLINE# def test_getargs( self , reporter , RunnerClass , dep_manager ) : #NEWLINE# #INDENT# t1 = Task ( 't1' , [ ( use_args , ) ] , getargs = dict ( arg1 = ( 't2' , 'myarg' ) ) ) #NEWLINE# t2 = Task ( 't2' , [ ( make_args , ) ] ) #NEWLINE# my_runner = RunnerClass ( dep_manager , reporter ) #NEWLINE# my_runner . run_tasks ( TaskDispatcher ( { #NEWLINE# #INDENT# 't1' : t1 , #NEWLINE# 't2' : t2 , #NEWLINE# #UNINDENT# } , [ ] , [ 't1' , 't2' ] ) ) #NEWLINE# assert ( runner . SUCCESS == my_runner . finish ( ) ) #NEWLINE# assert ( ( 'start' , t1 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'start' , t2 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'execute' , t2 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'success' , t2 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'execute' , t1 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'success' , t1 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( 0 == len ( reporter . log ) )