#NEWLINE# def test_operators( self ) : #NEWLINE# #INDENT# for operator in ( '=' , '+=' , '-=' , '*=' , '==' , '!=' , '()' , '[]' , '<' , '>' , '^=' , '<<=' , '>>=' ) : #NEWLINE# #INDENT# code = ( 'void Foo::operator%s();' % operator ) #NEWLINE# nodes = list ( MakeBuilder ( code ) . generate ( ) ) #NEWLINE# self . assertEqual ( 1 , len ( nodes ) , repr ( nodes ) ) #NEWLINE# self . assertEqual ( Method ( ( 'operator%s' % nodes ) , list ( get_tokens ( 'Foo' ) ) , list ( get_tokens ( 'void' ) ) , [ ] ) , nodes [ 0 ] )