MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/test/test_urllib2.py:491–493  ·  view source on GitHub ↗
(self, debuglevel=None)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

superClass · 0.85
MockHTTPClassClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected