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

Method test_min_max_version_sslv3

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

Source from the content-addressed store, hash-verified

4252
4253 @requires_tls_version('SSLv3')
4254 def test_min_max_version_sslv3(self):
4255 client_context, server_context, hostname = testing_context()
4256 server_context.minimum_version = ssl.TLSVersion.SSLv3
4257 client_context.minimum_version = ssl.TLSVersion.SSLv3
4258 client_context.maximum_version = ssl.TLSVersion.SSLv3
4259 seclevel_workaround(client_context, server_context)
4260
4261 with ThreadedEchoServer(context=server_context) as server:
4262 with client_context.wrap_socket(socket.socket(),
4263 server_hostname=hostname) as s:
4264 s.connect((HOST, server.port))
4265 self.assertEqual(s.version(), 'SSLv3')
4266
4267 def test_default_ecdh_curve(self):
4268 # Issue #21015: elliptic curve-based Diffie Hellman key exchange

Callers

nothing calls this directly

Calls 8

testing_contextFunction · 0.85
seclevel_workaroundFunction · 0.85
ThreadedEchoServerClass · 0.85
wrap_socketMethod · 0.80
socketMethod · 0.80
connectMethod · 0.45
assertEqualMethod · 0.45
versionMethod · 0.45

Tested by

no test coverage detected