(self, text, status_code, reason, *args)
| 44 | |
| 45 | class FakeResponse(object): |
| 46 | def __init__(self, text, status_code, reason, *args): |
| 47 | self.text = text |
| 48 | self.content = text |
| 49 | self.status_code = status_code |
| 50 | self.reason = reason |
| 51 | if args: |
| 52 | self.headers = args[0] |
| 53 | |
| 54 | def json(self): |
| 55 | return json.loads(self.text) |
nothing calls this directly
no outgoing calls
no test coverage detected