#NEWLINE# def test_graph_flow_links_and_dependencies( self ) : #NEWLINE# #INDENT# task1 = _task ( 'task1' , provides = [ 'a' ] ) #NEWLINE# task2 = _task ( 'task2' , requires = [ 'a' ] ) #NEWLINE# f = gf . Flow ( 'test' ) . add ( f , task2 ) #NEWLINE# linked = f . link ( task1 , task2 ) #NEWLINE# self . assertIs ( linked , f ) #NEWLINE# expected_meta = { #NEWLINE# #INDENT# 'manual' : True , #NEWLINE# 'reasons' : set ( [ 'a' ] ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertItemsEqual ( list ( f . iter_links ( ) ) , [ ( task1 , task2 , expected_meta ) ] )