class documentation

class HttpRequestMock(object):

Constructor: HttpRequestMock(resp, content, postproc)

View In Hierarchy

Mock of HttpRequest.

Do not construct directly, instead use RequestMockBuilder.

Method __init__ Constructor for HttpRequestMock
Method execute Execute the request.
Instance Variable content Undocumented
Instance Variable postproc Undocumented
Instance Variable resp Undocumented
def __init__(self, resp, content, postproc):

Constructor for HttpRequestMock

Parameters
resphttplib2.Response, the response to emulate coming from the request
contentstring, the response body
postproccallable, the post processing function usually supplied by the model class. See model.JsonModel.response() as an example.
def execute(self, http=None):

Execute the request.

Same behavior as HttpRequest.execute(), but the response is mocked and not really from an HTTP request/response.

content =

Undocumented

postproc =

Undocumented

resp =

Undocumented