#NEWLINE# def test_targeted_flow_reset( self ) : #NEWLINE# #INDENT# f = gf . TargetedFlow ( 'test' ) #NEWLINE# task1 = _task ( 'task1' , provides = [ 'a' ] , requires = [ ] ) #NEWLINE# task2 = _task ( 'task2' , provides = [ 'b' ] , requires = [ 'a' ] ) #NEWLINE# task3 = _task ( 'task3' , provides = [ ] , requires = [ 'b' ] ) #NEWLINE# task4 = _task ( 'task4' , provides = [ 'c' ] , requires = [ 'b' ] ) #NEWLINE# f . add ( task1 , task2 , task3 , task4 ) #NEWLINE# f . set_target ( task3 ) #NEWLINE# f . reset_target ( ) #NEWLINE# self . assertEqual ( 4 , len ( self ) ) #NEWLINE# self . assertItemsEqual ( f , [ task1 , task2 , task3 , task4 ] ) #NEWLINE# self . assertIn ( 'c' , f . provides )