| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
HttpRequestMock
Mock of HttpRequest.
Do not construct directly, instead use RequestMockBuilder.
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Constructor for HttpRequestMock
Args:
resp: httplib2.Response, the response to emulate coming from the request
content: string, the response body
postproc: callable, the post processing function usually supplied by
the model class. See model.JsonModel.response() as an example.
|
Execute the request. Same behavior as HttpRequest.execute(), but the response is mocked and not really from an HTTP request/response. |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Oct 2 20:46:22 2020 | http://epydoc.sourceforge.net |