| 486 | |
| 487 | |
| 488 | class MockHTTPHandler(urllib.request.HTTPHandler): |
| 489 | # Very simple mock HTTP handler with no special behavior other than using a mock HTTP connection |
| 490 | |
| 491 | def __init__(self, debuglevel=None): |
| 492 | super(MockHTTPHandler, self).__init__(debuglevel=debuglevel) |
| 493 | self.httpconn = MockHTTPClass() |
| 494 | |
| 495 | def http_open(self, req): |
| 496 | return self.do_open(self.httpconn, req) |
| 497 | |
| 498 | |
| 499 | class MockHTTPHandlerRedirect(urllib.request.BaseHandler): |
no outgoing calls
searching dependent graphs…