A Mox comparator to compare a string of a JSON object to a JSON object.
def google.appengine.tools.devappserver2.endpoints.endpoints_server_test.JsonMatches.__init__ |
( |
|
self, |
|
|
|
json_object |
|
) |
| |
Constructor.
Args:
json_object: The JSON object to compare against.
def google.appengine.tools.devappserver2.endpoints.endpoints_server_test.JsonMatches.equals |
( |
|
self, |
|
|
|
json_string |
|
) |
| |
Check if the given object matches our json object.
This converts json_string from a string to a JSON object, then compares it
against our json object.
Args:
json_string: A string containing a JSON object to be compared against.
Returns:
True if the object matches, False if not.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/endpoints/endpoints_server_test.py