#NEWLINE# def test_lookup_rpc_method( self ) : #NEWLINE# #INDENT# self . mox . StubOutWithMock ( self . server . config_manager , 'lookup_rpc_method' ) #NEWLINE# self . server . config_manager . lookup_rpc_method ( 'foo' , 'v1' ) . AndReturn ( 'bar' ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# orig_request = test_utils . build_request ( '/_ah/api/rpc' , '{"method": "foo", "apiVersion": "v1"}' ) #NEWLINE# self . assertEqual ( 'bar' , self . server . lookup_rpc_method ( self ) ) #NEWLINE# self . mox . VerifyAll ( )