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

Method test_min_max_version_sslv3

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

Source from the content-addressed store, hash-verified

3967
3968 @requires_tls_version('SSLv3')
3969 def test_min_max_version_sslv3(self):
3970 client_context, server_context, hostname = testing_context()
3971 server_context.minimum_version = ssl.TLSVersion.SSLv3
3972 client_context.minimum_version = ssl.TLSVersion.SSLv3
3973 client_context.maximum_version = ssl.TLSVersion.SSLv3
3974 seclevel_workaround(client_context, server_context)
3975
3976 with ThreadedEchoServer(context=server_context) as server:
3977 with client_context.wrap_socket(socket.socket(),
3978 server_hostname=hostname) as s:
3979 s.connect((HOST, server.port))
3980 self.assertEqual(s.version(), 'SSLv3')
3981
3982 def test_default_ecdh_curve(self):
3983 # 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