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
3
Example 1
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)