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

Method test_https_handler_local_debuglevel

Lib/test/test_urllib2.py:1120–1125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1118
1119 @unittest.skipUnless(hasattr(http.client, 'HTTPSConnection'), 'HTTPSConnection required for HTTPS tests.')
1120 def test_https_handler_local_debuglevel(self):
1121 o = OpenerDirector()
1122 h = MockHTTPSHandler(debuglevel=4)
1123 o.add_handler(h)
1124 o.open("https://www.example.com")
1125 self.assertEqual(h._debuglevel, 4)
1126
1127 def test_http_doubleslash(self):
1128 # Checks the presence of any unnecessary double slash in url does not

Callers

nothing calls this directly

Calls 5

add_handlerMethod · 0.95
openMethod · 0.95
OpenerDirectorClass · 0.90
MockHTTPSHandlerClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected