![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | assert_rewritten_response |
![]() | |
def | assertHeadersEqual |
def | assertResponse |
Static Public Attributes | |
tuple | rewriter_middleware |
Base class for test cases that test rewriter functionality.
def google.appengine.tools.devappserver2.wsgi_test_utils.RewriterTestCase.assert_rewritten_response | ( | self, | |
expected_status, | |||
expected_headers, | |||
expected_body, | |||
application, | |||
environ = None |
|||
) |
Tests that a rewritten application produces the expected response. This applies the response rewriter chain to application and then tests the result. Args: expected_status: The expected HTTP status returned e.g. '200 OK'. expected_headers: A dict, list or wsgiref.headers.Headers representing the expected generated HTTP headers e.g. {'Content-type': 'text/plain'}. expected_body: The expected content generated e.g. 'Hello World'. application: A WSGI application that will be called and have its response rewritten. environ: Optional environment to pass to the application.
|
static |