def __init__(self, content, code): self.read = StringIO(text_type(content)).read self.code = code
def __init__(self, content, code): super(MockResponse, self).__init__(text_type(content)) self.code = code