#NEWLINE# def test_function_return( self ) : #NEWLINE# #INDENT# for argument in ( 'class' , 'enum' , 'struct' , 'union' ) : #NEWLINE# #INDENT# code = ( '%s A fn();' % argument ) #NEWLINE# nodes = list ( MakeBuilder ( code ) . generate ( ) ) #NEWLINE# self . assertEqual ( 1 , len ( nodes ) , repr ( nodes ) ) #NEWLINE# self . assertEqual ( Function ( 'fn' , list ( get_tokens ( 'A' ) ) , [ ] ) , nodes [ 0 ] )