#NEWLINE# def test_service( self ) : #NEWLINE# #INDENT# gw = gateway . BaseGateway ( ) #NEWLINE# gw . addService ( ( lambda x : x ) , 'test' , preprocessor = self . _preproc ) #NEWLINE# envelope = remoting . Envelope ( ) #NEWLINE# request = remoting . Request ( 'test' ) #NEWLINE# envelope [ '/1' ] = request #NEWLINE# service_request = gateway . ServiceRequest ( envelope , gw . services [ 'test' ] , None ) #NEWLINE# self . assertEqual ( gw . getPreprocessor ( self ) , self . _preproc )