#NEWLINE# def test_typedef( self ) : #NEWLINE# #INDENT# for argument in ( 'bool' , 'char' , 'int' , 'long' , 'short' , 'double' , 'float' , 'void' , 'wchar_t' , 'unsigned' , 'signed' ) : #NEWLINE# #INDENT# code = ( 'typedef %s Type;' % self ) #NEWLINE# nodes = list ( MakeBuilder ( code ) . generate ( ) ) #NEWLINE# self . assertEqual ( 1 , len ( nodes ) , repr ( nodes ) ) #NEWLINE# self . assertEqual ( Typedef ( 'Type' , alias = [ Type ( ( '%s' % argument ) ) ] ) , nodes [ 0 ] )