(self)
| 1101 | self.assertEqual(h._debuglevel, 6) |
| 1102 | |
| 1103 | def test_http_handler_local_debuglevel(self): |
| 1104 | o = OpenerDirector() |
| 1105 | h = MockHTTPHandler(debuglevel=5) |
| 1106 | o.add_handler(h) |
| 1107 | o.open("http://www.example.com") |
| 1108 | self.assertEqual(h._debuglevel, 5) |
| 1109 | |
| 1110 | @unittest.skipUnless(hasattr(http.client, 'HTTPSConnection'), 'HTTPSConnection required for HTTPS tests.') |
| 1111 | def test_https_handler_global_debuglevel(self): |
nothing calls this directly
no test coverage detected