#NEWLINE# def test_generate_discovery_doc_rpc( self ) : #NEWLINE# #INDENT# body = json . dumps ( { #NEWLINE# #INDENT# 'rpcUrl' : 'https://tictactoe.appspot.com/_ah/api/rpc' , #NEWLINE# #UNINDENT# } ) #NEWLINE# discovery = self . prepare_discovery_request ( body ) #NEWLINE# discovery . _discovery_proxy . generate_discovery_doc ( mox . IsA ( object ) , 'rpc' ) . AndReturn ( body ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# response = discovery . handle_discovery_request ( discovery_service . DiscoveryService . _GET_RPC_API , self . api_request , self . start_response ) #NEWLINE# self . mox . VerifyAll ( ) #NEWLINE# self . assert_http_match ( response , 200 , [ ( 'Content-Type' , 'application/json; charset=UTF-8' ) , ( 'Content-Length' , ( '%d' % len ( body ) ) ) ] , body )