#NEWLINE# def test_priorities_for_fork( self ) : #NEWLINE# #INDENT# exec_graph = ExecutionGraph ( [ self . job ( 'A' , passing_fn , [ ] , 4 ) , self . job ( 'B' , passing_fn , [ 'A' ] , 2 ) , self . job ( 'C' , passing_fn , [ 'A' ] , 1 ) ] ) #NEWLINE# self . assertEqual ( exec_graph . _job_priority , { #NEWLINE# #INDENT# 'A' : 6 , #NEWLINE# 'B' : 2 , #NEWLINE# 'C' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . execute ( exec_graph ) #NEWLINE# self . assertEqual ( self . jobs_run , [ 'A' , 'B' , 'C' ] )