#NEWLINE# def test_getargs_group( self , reporter , dep_manager ) : #NEWLINE# #INDENT# def ok( ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'x' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# t1 = Task ( 't1' , None , task_dep = [ 't1:a' ] , has_subtask = True ) #NEWLINE# t1a = Task ( 't1:a' , [ ( ok , ) ] , is_subtask = True ) #NEWLINE# t2 = Task ( 't2' , None , getargs = { #NEWLINE# #INDENT# 'my_x' : ( 't1' , None ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# tasks_dict = { #NEWLINE# #INDENT# 't1' : t1 , #NEWLINE# 't1a' : t1a , #NEWLINE# 't2' : t2 , #NEWLINE# #UNINDENT# } #NEWLINE# my_runner = runner . Runner ( dep_manager , reporter ) #NEWLINE# t1a_result = my_runner . execute_task ( t1a ) #NEWLINE# my_runner . process_task_result ( ExecNode ( t1a , None ) , t1a_result ) #NEWLINE# my_runner . _get_task_args ( t2 , tasks_dict ) #NEWLINE# assert ( { #NEWLINE# #INDENT# 'my_x' : { #NEWLINE# #INDENT# 'a' : { #NEWLINE# #INDENT# 'x' : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } == t2 . options )