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

Method setUp

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

Source from the content-addressed store, hash-verified

1845 """Tests that connect to a simple server running in the background"""
1846
1847 def setUp(self):
1848 self.server_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
1849 self.server_context.load_cert_chain(SIGNED_CERTFILE)
1850 server = ThreadedEchoServer(context=self.server_context)
1851 self.enterContext(server)
1852 self.server_addr = (HOST, server.port)
1853
1854 def test_connect(self):
1855 with test_wrap_socket(socket.socket(socket.AF_INET),

Callers

nothing calls this directly

Calls 3

ThreadedEchoServerClass · 0.85
enterContextMethod · 0.80
load_cert_chainMethod · 0.45

Tested by

no test coverage detected