#NEWLINE# def test_priorities_for_mirrored_diamond( self ) : #NEWLINE# #INDENT# exec_graph = ExecutionGraph ( [ self . job ( 'A' , passing_fn , [ ] , 8 ) , self . job ( 'B' , passing_fn , [ 'A' ] , 2 ) , self . job ( 'C' , passing_fn , [ 'A' ] , 4 ) , self . job ( 'D' , passing_fn , [ 'B' , 'C' ] , 1 ) ] ) #NEWLINE# self . assertEqual ( self . _job_priority , { #NEWLINE# #INDENT# 'A' : 13 , #NEWLINE# 'B' : 3 , #NEWLINE# 'C' : 5 , #NEWLINE# 'D' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . execute ( exec_graph ) #NEWLINE# self . assertEqual ( self . jobs_run , [ 'A' , 'C' , 'B' , 'D' ] )