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

Method test_valid_certdata

Lib/test/test_httpservers.py:435–448  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 return self.connection.getresponse()
434
435 def test_valid_certdata(self):
436 valid_certdata= [
437 (self.CERTFILE, None, None),
438 (self.CERTFILE, self.CERTFILE, None),
439 (self.CERTFILE_PROTECTED, None, self.KEY_PASSWORD),
440 (self.ONLYCERT, self.ONLYKEY_PROTECTED, self.KEY_PASSWORD),
441 ]
442 for certfile, keyfile, password in valid_certdata:
443 with self.subTest(
444 certfile=certfile, keyfile=keyfile, password=password
445 ):
446 server = create_https_server(certfile, keyfile, password)
447 self.assertIsInstance(server, HTTPSServer)
448 server.server_close()
449
450 def test_invalid_certdata(self):
451 invalid_certdata = [

Callers

nothing calls this directly

Calls 4

create_https_serverFunction · 0.85
assertIsInstanceMethod · 0.80
subTestMethod · 0.45
server_closeMethod · 0.45

Tested by

no test coverage detected