

def handleResponse(self, environment, start_response):
    'Processes a request to the mock server, and returns a\n        String object containing the response document.  The mock server\n        will send this to the client code, which can read it as a\n        StringIO document.  This example always returns a successful\n        response to any request; a more intricate mock server could\n        examine the request environment to determine what sort of\n        response to give.'
    status = '200 OK'
    headers = [('Content-Type', 'text/html')]
    start_response(status, headers)
    return test_page

dataset/ETHPy150Open wesabe/fixofx/3rdparty/wsgi_intercept/mock_http.py MockHttpServer.handleResponse/original