#NEWLINE# def test_run_task( self , reporter , dep_manager ) : #NEWLINE# #INDENT# t1 = Task ( 't1' , [ ] ) #NEWLINE# t2 = Task ( 't2' , [ ] ) #NEWLINE# run = runner . MRunner ( dep_manager , reporter ) #NEWLINE# run . _run_tasks_init ( TaskDispatcher ( { #NEWLINE# #INDENT# 't1' : t1 , #NEWLINE# 't2' : t2 , #NEWLINE# #UNINDENT# } , [ ] , [ 't1' , 't2' ] ) ) #NEWLINE# assert ( t1 . name == run . get_next_job ( None ) . name ) #NEWLINE# assert ( t2 . name == run . get_next_job ( None ) . name ) #NEWLINE# assert ( None == run . get_next_job ( None ) )