#NEWLINE# def test_revert_ok_for_linear_in_unordered( self ) : #NEWLINE# #INDENT# flow = uf . Flow ( 'p-root' ) . add ( utils . ProgressingTask ( name = 'task1' ) , lf . Flow ( 'p-inner' ) . add ( utils . ProgressingTask ( name = 'task2' ) , utils . FailingTask ( 'fail' ) ) ) #NEWLINE# engine = self . _make_engine ( flow ) #NEWLINE# with utils . CaptureListener ( engine , capture_flow = False ) as capturer : #NEWLINE# #INDENT# self . assertFailuresRegexp ( RuntimeError , '^Woot' , engine . run ) #NEWLINE# #UNINDENT# self . assertIn ( 'fail.t FAILURE(Failure: RuntimeError: Woot!)' , capturer . values ) #NEWLINE# if ( 'task1' in capturer . values ) : #NEWLINE# #INDENT# task1_story = [ 'task1.t RUNNING' , 'task1.t SUCCESS(5)' , 'task1.t REVERTED(None)' ] #NEWLINE# self . assertIsSuperAndSubsequence ( capturer . values , task1_story ) #NEWLINE# #UNINDENT# task2_story = [ 'task2.t RUNNING' , 'task2.t SUCCESS(5)' , 'task2.t REVERTED(None)' ] #NEWLINE# self . assertIsSuperAndSubsequence ( capturer . values , task2_story )