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

Method test_server_sigalgs

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

Source from the content-addressed store, hash-verified

4511 sni_name=hostname)
4512
4513 def test_server_sigalgs(self):
4514 # server rsa_pss_rsae_sha384, client auto
4515 sigalg = "rsa_pss_rsae_sha384"
4516 client_context, server_context, hostname = testing_context()
4517 server_context.set_server_sigalgs(sigalg)
4518 stats = server_params_test(client_context, server_context,
4519 chatty=True, connectionchatty=True,
4520 sni_name=hostname)
4521 if CAN_GET_SELECTED_OPENSSL_SIGALG:
4522 self.assertEqual(stats['server_sigalg'], sigalg)
4523
4524 # server auto, client rsa_pss_rsae_sha384
4525 client_context, server_context, hostname = testing_context()
4526 client_context.set_server_sigalgs(sigalg)
4527 stats = server_params_test(client_context, server_context,
4528 chatty=True, connectionchatty=True,
4529 sni_name=hostname)
4530 if CAN_GET_SELECTED_OPENSSL_SIGALG:
4531 self.assertEqual(stats['server_sigalg'], sigalg)
4532
4533 def test_server_sigalgs_mismatch(self):
4534 client_context, server_context, hostname = testing_context()

Callers

nothing calls this directly

Calls 3

testing_contextFunction · 0.85
server_params_testFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected