#NEWLINE# def test_it_runs( self ) : #NEWLINE# #INDENT# values = [ ] #NEWLINE# bof = BunchOfFunctions ( values ) #NEWLINE# t = base . FunctorTask #NEWLINE# flow = linear_flow . Flow ( 'test' ) #NEWLINE# flow . add ( t ( bof . run_one , revert = bof . revert_one ) , t ( bof . run_fail ) ) #NEWLINE# self . assertRaisesRegexp ( RuntimeError , '^Woot' , taskflow . engines . run , flow ) #NEWLINE# self . assertEqual ( [ 'one' , 'fail' , 'revert one' ] , values )