#NEWLINE# def test_invalid_flow_raises_from_run( self ) : #NEWLINE# #INDENT# def run_bad( value ) : #NEWLINE# #INDENT# engine = self . _make_engine ( value ) #NEWLINE# engine . run ( ) #NEWLINE# #UNINDENT# value = 'i am string, not task/flow, sorry' #NEWLINE# err = self . assertRaises ( TypeError , run_bad , value ) #NEWLINE# self . assertIn ( value , str ( err ) )