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

Method test_protocol_tlsv1

Lib/test/test_ssl.py:3394–3404  ·  view source on GitHub ↗

Connecting to a TLSv1 server with various client options

(self)

Source from the content-addressed store, hash-verified

3392
3393 @requires_tls_version('TLSv1')
3394 def test_protocol_tlsv1(self):
3395 """Connecting to a TLSv1 server with various client options"""
3396 if support.verbose:
3397 sys.stdout.write("\n")
3398 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1')
3399 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_OPTIONAL)
3400 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_REQUIRED)
3401 if has_tls_version('SSLv3'):
3402 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv3, False)
3403 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLS, False,
3404 client_options=ssl.OP_NO_TLSv1)
3405
3406 @requires_tls_version('TLSv1_1')
3407 def test_protocol_tlsv1_1(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