#NEWLINE# def test_revert_provided( self ) : #NEWLINE# #INDENT# flow = lf . Flow ( 'revert' ) . add ( utils . GiveBackRevert ( 'giver' ) , utils . FailingTask ( name = 'fail' ) ) #NEWLINE# engine = self . _make_engine ( flow , store = { #NEWLINE# #INDENT# 'value' : 0 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFailuresRegexp ( RuntimeError , '^Woot' , engine . run ) #NEWLINE# self . assertEqual ( 2 , engine . storage . get_revert_result ( 'giver' ) )