Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Unit tests for the discovery_api_proxy module. N/A httplib N/A json N/A os N/A unittest N/A google N/A mox google.appengine.tools.devappserver2.endpoints discovery_api_proxy google.appengine.tools.devappserver2.endpoints test_utils DiscoveryApiProxyTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self _common_setup N/A N/A self mox N/A N/A mox Mox N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self mox UnsetStubs N/A _common_setup N/A N/A self N/A N/A N/A N/A self discovery_api N/A N/A discovery_api_proxy DiscoveryApiProxy N/A api_config_file N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ testdata/tictactoe-v1.api N/A N/A open api_config_file r api_file N/A N/A api_config N/A N/A api_file read N/A N/A self api_config_dict N/A N/A json loads api_config N/A connection_response N/A N/A self N/A N/A N/A N/A self _response N/A prepare_discovery_request N/A N/A self status_code body N/A N/A N/A N/A N/A N/A self mox StubOutWithMock N/A httplib HTTPSConnection request N/A N/A N/A N/A self mox StubOutWithMock N/A httplib HTTPSConnection getresponse N/A N/A N/A N/A self mox StubOutWithMock N/A httplib HTTPSConnection close N/A N/A N/A N/A httplib HTTPSConnection request N/A N/A mox IsA basestring N/A N/A mox IsA basestring N/A N/A mox IgnoreArg N/A N/A mox IsA dict N/A N/A N/A N/A N/A N/A httplib HTTPSConnection getresponse AndReturn N/A N/A test_utils MockConnectionResponse status_code body N/A N/A N/A N/A httplib HTTPSConnection close N/A test_generate_discovery_doc_rest N/A N/A self N/A N/A N/A body N/A baseUrl https://tictactoe.appspot.com/_ah/api/tictactoe/v1/ N/A N/A N/A self prepare_discovery_request 200 N/A N/A json dumps body N/A N/A N/A N/A self mox ReplayAll N/A doc N/A N/A N/A self discovery_api generate_discovery_doc N/A self api_config_dict rest N/A N/A N/A N/A self mox VerifyAll N/A N/A N/A self assertTrue doc N/A api_config N/A N/A json loads doc N/A N/A N/A self assertEquals https://tictactoe.appspot.com/_ah/api/tictactoe/v1/ N/A api_config N/A baseUrl N/A test_generate_discovery_doc_rpc N/A N/A self N/A N/A N/A body N/A rpcUrl https://tictactoe.appspot.com/_ah/api/rpc N/A N/A N/A self prepare_discovery_request 200 N/A N/A json dumps body N/A N/A N/A N/A self mox ReplayAll N/A doc N/A N/A N/A self discovery_api generate_discovery_doc N/A self api_config_dict rpc N/A N/A N/A N/A self mox VerifyAll N/A N/A N/A self assertTrue doc N/A api_config N/A N/A json loads doc N/A N/A N/A self assertEquals https://tictactoe.appspot.com/_ah/api/rpc N/A api_config N/A rpcUrl N/A test_generate_discovery_doc_invalid_format N/A N/A self N/A N/A N/A N/A self _response N/A N/A test_utils MockConnectionResponse 400 Error N/A N/A N/A self assertRaises ValueError N/A N/A self discovery_api generate_discovery_doc N/A self api_config_dict blah N/A test_generate_discovery_doc_bad_api_config N/A N/A self N/A N/A N/A N/A N/A self prepare_discovery_request 503 None N/A N/A N/A N/A self mox ReplayAll N/A doc N/A N/A N/A self discovery_api generate_discovery_doc { "name": "none" } rpc N/A N/A N/A N/A self mox VerifyAll N/A N/A N/A self assertIsNone doc N/A test_get_static_file_existing N/A N/A self N/A N/A N/A body static file body N/A N/A N/A self prepare_discovery_request 200 body N/A N/A N/A N/A self mox ReplayAll N/A N/A response response_body N/A N/A N/A self discovery_api get_static_file /_ah/api/static/proxy.html N/A N/A N/A N/A self mox VerifyAll N/A N/A N/A self assertEqual 200 N/A response status N/A N/A N/A self assertEqual body response_body N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main