Match a ``urllib3.response.HTTPResponse``.
| 18 | |
| 19 | |
| 20 | class DummyResponse: |
| 21 | """Match a ``urllib3.response.HTTPResponse``.""" |
| 22 | |
| 23 | version = "1.1" |
| 24 | reason = b"Because" |
| 25 | strict = 0 |
| 26 | decode_content = False |
| 27 | |
| 28 | def __init__(self, status, headers): |
| 29 | self.status = status |
| 30 | self.headers = CaseInsensitiveDict(headers) |
| 31 | |
| 32 | |
| 33 | class DummyRequest: |
no outgoing calls
searching dependent graphs…