#NEWLINE# def test_generator( self ) : #NEWLINE# #INDENT# result = self . helper . run_on_generator ( ) #NEWLINE# output = ( 0 , 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 ) #NEWLINE# self . assertSequenceEqual ( result , output ) #NEWLINE# template = [ 'index type function lineNo filename' , '-----------------------------------' , '3 call fibonacci 63 {0}' , '4 c_call range 66 {0}' , '5 c_return range 66 {0}' , '6 return fibonacci 67 {0}' , '19 call fibonacci 67 {0}' , '20 return fibonacci 67 {0}' , '34 call fibonacci 67 {0}' , '35 return fibonacci 67 {0}' , '49 call fibonacci 67 {0}' , '50 return fibonacci 67 {0}' , '64 call fibonacci 67 {0}' , '65 return fibonacci 67 {0}' , '79 call fibonacci 67 {0}' , '80 return fibonacci 67 {0}' , '94 call fibonacci 67 {0}' , '95 return fibonacci 67 {0}' , '109 call fibonacci 67 {0}' , '110 return fibonacci 67 {0}' , '124 call fibonacci 67 {0}' , '125 return fibonacci 67 {0}' , '139 call fibonacci 67 {0}' , '140 return fibonacci 67 {0}' , '154 call fibonacci 67 {0}' , '155 return fibonacci 68 {0}' ] #NEWLINE# self . check_records ( template , self . stream )