#NEWLINE# def test_call( self ) : #NEWLINE# #INDENT# sw = gateway . ServiceWrapper ( TestService ) #NEWLINE# request = remoting . Envelope ( ) #NEWLINE# x = gateway . ServiceRequest ( request , sw , None ) #NEWLINE# self . assertRaises ( gateway . UnknownServiceMethodError , x ) #NEWLINE# x = gateway . ServiceRequest ( request , sw , 'spam' ) #NEWLINE# self . assertEqual ( x ( ) , 'spam' ) #NEWLINE# x = gateway . ServiceRequest ( request , sw , 'echo' ) #NEWLINE# self . assertEqual ( x ( x ) , self )