MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_https

Method test_https

Lib/test/test_urllib2_localnet.py:575–579  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

573
574
575 def test_https(self):
576 handler = self.start_https_server()
577 context = ssl.create_default_context(cafile=CERT_localhost)
578 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context)
579 self.assertEqual(data, b"we care a bit")
580
581
582 def test_https_sni(self):

Callers

nothing calls this directly

Calls 3

start_https_serverMethod · 0.95
urlopenMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected