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

Method test_protocol_tlsv1_1

Lib/test/test_ssl.py:3407–3420  ·  view source on GitHub ↗

Connecting to a TLSv1.1 server with various client options. Testing against older TLS versions.

(self)

Source from the content-addressed store, hash-verified

3405
3406 @requires_tls_version('TLSv1_1')
3407 def test_protocol_tlsv1_1(self):
3408 """Connecting to a TLSv1.1 server with various client options.
3409 Testing against older TLS versions."""
3410 if support.verbose:
3411 sys.stdout.write("\n")
3412 try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1')
3413 if has_tls_version('SSLv3'):
3414 try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_SSLv3, False)
3415 try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLS, False,
3416 client_options=ssl.OP_NO_TLSv1_1)
3417
3418 try_protocol_combo(ssl.PROTOCOL_TLS, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1')
3419 try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_2, False)
3420 try_protocol_combo(ssl.PROTOCOL_TLSv1_2, ssl.PROTOCOL_TLSv1_1, False)
3421
3422 @requires_tls_version('TLSv1_2')
3423 def test_protocol_tlsv1_2(self):

Callers

nothing calls this directly

Calls 3

try_protocol_comboFunction · 0.85
has_tls_versionFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected