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

Method setUp

Lib/test/test_ssl.py:2064–2069  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2062 """Tests that connect to a simple server running in the background"""
2063
2064 def setUp(self):
2065 self.server_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
2066 self.server_context.load_cert_chain(SIGNED_CERTFILE)
2067 server = ThreadedEchoServer(context=self.server_context)
2068 self.enterContext(server)
2069 self.server_addr = (HOST, server.port)
2070
2071 def test_connect(self):
2072 with test_wrap_socket(socket.socket(socket.AF_INET),

Callers

nothing calls this directly

Calls 2

ThreadedEchoServerClass · 0.85
enterContextMethod · 0.80

Tested by

no test coverage detected