App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.ext.webapp.mock_webapp.MockResponse Class Reference
Inheritance diagram for google.appengine.ext.webapp.mock_webapp.MockResponse:

Public Member Functions

def __init__
 
def set_status
 
def has_error
 
def clear
 

Public Attributes

 out
 
 headers
 
 status
 
 status_message
 

Detailed Description

Mocks out webapp.Response.

Public Members:
  out: A StringIO instance.
  status: HTTP status code.
  message: HTTP status message.
  headers: A dict of HTTP response headers.

Member Function Documentation

def google.appengine.ext.webapp.mock_webapp.MockResponse.clear (   self)
Clears all data written to self.out.
def google.appengine.ext.webapp.mock_webapp.MockResponse.has_error (   self)
Indicates whether the response was an error response.
def google.appengine.ext.webapp.mock_webapp.MockResponse.set_status (   self,
  status,
  message = None 
)
Sets the value of status.

Args:
  status: HTTP status code.
  message: HTTP status message.

The documentation for this class was generated from the following file: