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

Method test_protocol_tlsv1

Lib/test/test_ssl.py:3677–3687  ·  view source on GitHub ↗

Connecting to a TLSv1 server with various client options

(self)

Source from the content-addressed store, hash-verified

3675
3676 @requires_tls_version('TLSv1')
3677 def test_protocol_tlsv1(self):
3678 """Connecting to a TLSv1 server with various client options"""
3679 if support.verbose:
3680 sys.stdout.write("\n")
3681 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1')
3682 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_OPTIONAL)
3683 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_REQUIRED)
3684 if has_tls_version('SSLv3'):
3685 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv3, False)
3686 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLS, False,
3687 client_options=ssl.OP_NO_TLSv1)
3688
3689 @requires_tls_version('TLSv1_1')
3690 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