(self)
| 1109 | |
| 1110 | @unittest.skipUnless(hasattr(http.client, 'HTTPSConnection'), 'HTTPSConnection required for HTTPS tests.') |
| 1111 | def test_https_handler_global_debuglevel(self): |
| 1112 | with mock.patch.object(http.client.HTTPSConnection, 'debuglevel', 7): |
| 1113 | o = OpenerDirector() |
| 1114 | h = MockHTTPSHandler() |
| 1115 | o.add_handler(h) |
| 1116 | o.open("https://www.example.com") |
| 1117 | self.assertEqual(h._debuglevel, 7) |
| 1118 | |
| 1119 | @unittest.skipUnless(hasattr(http.client, 'HTTPSConnection'), 'HTTPSConnection required for HTTPS tests.') |
| 1120 | def test_https_handler_local_debuglevel(self): |
nothing calls this directly
no test coverage detected