#NEWLINE# def test_iter_links( self ) : #NEWLINE# #INDENT# task1 = _task ( name = 'task1' ) #NEWLINE# task2 = _task ( name = 'task2' ) #NEWLINE# task3 = _task ( name = 'task3' ) #NEWLINE# f = lf . Flow ( 'test' ) . add ( task1 , task2 , task3 ) #NEWLINE# tasks = set ( [ task1 , task2 , task3 ] ) #NEWLINE# for ( u , v , data ) in f . iter_links ( ) : #NEWLINE# #INDENT# self . assertTrue ( ( u in tasks ) ) #NEWLINE# self . assertTrue ( ( v in tasks ) ) #NEWLINE# self . assertDictEqual ( { #NEWLINE# #INDENT# 'invariant' : True , #NEWLINE# #UNINDENT# } , data )