| 272 | |
| 273 | |
| 274 | class MockOpener: |
| 275 | addheaders = [] |
| 276 | |
| 277 | def open(self, req, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): |
| 278 | self.req, self.data, self.timeout = req, data, timeout |
| 279 | |
| 280 | def error(self, proto, *args): |
| 281 | self.proto, self.args = proto, args |
| 282 | |
| 283 | |
| 284 | class MockFile: |
no outgoing calls
searching dependent graphs…