| 206 | } |
| 207 | |
| 208 | class FakeSocket(object): |
| 209 | # Original source: |
| 210 | # https://stackoverflow.com/questions/24728088/python-parse-http-response-string |
| 211 | |
| 212 | def __init__(self, response_text): |
| 213 | self._file = io.BytesIO(response_text) |
| 214 | |
| 215 | def makefile(self, *args, **kwargs): |
| 216 | return self._file |
| 217 | |
| 218 | class HTTPRequest(_BaseHTTPServer.BaseHTTPRequestHandler): |
| 219 | # Original source: |
no outgoing calls
no test coverage detected
searching dependent graphs…