#NEWLINE# def test_linear_flow_one_task( self ) : #NEWLINE# #INDENT# f = lf . Flow ( 'test' ) #NEWLINE# task = _task ( name = 'task1' , requires = [ 'a' , 'b' ] , provides = [ 'c' , 'd' ] ) #NEWLINE# result = f . add ( task ) #NEWLINE# self . assertIs ( f , result ) #NEWLINE# self . assertEqual ( 1 , len ( result ) ) #NEWLINE# self . assertEqual ( [ task ] , list ( f ) ) #NEWLINE# self . assertEqual ( [ ] , list ( f . iter_links ( ) ) ) #NEWLINE# self . assertEqual ( set ( [ 'a' , 'b' ] ) , f . requires ) #NEWLINE# self . assertEqual ( set ( [ 'c' , 'd' ] ) , f . provides )