App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.tools.devappserver2.endpoints.endpoints_server_test.JsonMatches Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.endpoints.endpoints_server_test.JsonMatches:

Public Member Functions

def __init__
 
def equals
 
def __repr__
 

Detailed Description

A Mox comparator to compare a string of a JSON object to a JSON object.

Constructor & Destructor Documentation

def google.appengine.tools.devappserver2.endpoints.endpoints_server_test.JsonMatches.__init__ (   self,
  json_object 
)
Constructor.

Args:
  json_object: The JSON object to compare against.

Member Function Documentation

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: