#NEWLINE# def test_revert_not_run_task_is_not_reverted( self ) : #NEWLINE# #INDENT# flow = lf . Flow ( 'revert-not-run' ) . add ( utils . FailingTask ( 'fail' ) , utils . NeverRunningTask ( ) ) #NEWLINE# engine = self . _make_engine ( flow ) #NEWLINE# with utils . CaptureListener ( engine , capture_flow = False ) as capturer : #NEWLINE# #INDENT# self . assertFailuresRegexp ( RuntimeError , '^Woot' , flow . run ) #NEWLINE# #UNINDENT# expected = [ 'fail.t RUNNING' , 'fail.t FAILURE(Failure: RuntimeError: Woot!)' , 'fail.t REVERTING' , 'fail.t REVERTED(None)' ] #NEWLINE# self . assertEqual ( expected , capturer . values )