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

Method test_client_sigalgs

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

Source from the content-addressed store, hash-verified

4471 @unittest.skipUnless(CAN_SET_CLIENT_SIGALGS,
4472 "SSL library doesn't support setting client sigalgs")
4473 def test_client_sigalgs(self):
4474 # no mutual auth, so cient_sigalg should be None
4475 client_context, server_context, hostname = testing_context()
4476 stats = server_params_test(client_context, server_context,
4477 chatty=True, connectionchatty=True,
4478 sni_name=hostname)
4479 if CAN_GET_SELECTED_OPENSSL_SIGALG:
4480 self.assertIsNone(stats['client_sigalg'])
4481
4482 # server auto, client rsa_pss_rsae_sha384
4483 sigalg = "rsa_pss_rsae_sha384"
4484 client_context, server_context, hostname = \
4485 testing_context(client_cert=SIGNED_CERTFILE)
4486 client_context.set_client_sigalgs(sigalg)
4487 stats = server_params_test(client_context, server_context,
4488 chatty=True, connectionchatty=True,
4489 sni_name=hostname)
4490 if CAN_GET_SELECTED_OPENSSL_SIGALG:
4491 self.assertEqual(stats['client_sigalg'], sigalg)
4492
4493 @unittest.skipUnless(CAN_SET_CLIENT_SIGALGS,
4494 "SSL library doesn't support setting client sigalgs")

Callers

nothing calls this directly

Calls 4

testing_contextFunction · 0.85
server_params_testFunction · 0.85
assertIsNoneMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected