'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.'

def __init__(self, resp, content, postproc):

    self.resp = resp
    self.content = content
    self.postproc = postproc
    if (resp is None):
        self.resp = httplib2.Response({'status': 200, 'reason': 'OK'})
    if ('reason' in self.resp):
        self.resp.reason = self.resp['reason']
