#NEWLINE# def test_generate_discovery_doc_rpc( self ) : #NEWLINE# #INDENT# body = { #NEWLINE# #INDENT# 'rpcUrl' : 'https://tictactoe.appspot.com/_ah/api/rpc' , #NEWLINE# #UNINDENT# } #NEWLINE# self . prepare_discovery_request ( 200 , json . dumps ( body ) ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# doc = self . discovery_api . generate_discovery_doc ( self . api_config_dict , 'rpc' ) #NEWLINE# self . mox . VerifyAll ( ) #NEWLINE# self . assertTrue ( doc ) #NEWLINE# api_config = json . loads ( doc ) #NEWLINE# self . assertEquals ( 'https://tictactoe.appspot.com/_ah/api/rpc' , self [ 'rpcUrl' ] )