#NEWLINE# def test_targeted_flow_bad_target( self ) : #NEWLINE# #INDENT# f = gf . TargetedFlow ( 'test' ) #NEWLINE# task1 = _task ( 'task1' , provides = [ 'a' ] , requires = [ ] ) #NEWLINE# task2 = _task ( 'task2' , provides = [ 'b' ] , requires = [ 'a' ] ) #NEWLINE# f . add ( task1 ) #NEWLINE# self . assertRaisesRegexp ( ValueError , '^Node .* not found' , f . set_target , task2 )