requests_testadapter.Resp

Here are the examples of the python api requests_testadapter.Resp taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: zato-apitest Source File: test.py
Function: send
    def send(self, request, **kwargs):
        stream = self.serialize(dumps({
            'request': {
                'data': request.body,
                'headers': dict(request.headers)
            }
        }))

        resp = Resp(stream, self.status, self.headers)
        return self.build_response(request, resp)