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

Method check_common_name

Lib/test/test_ssl.py:4605–4607  ·  view source on GitHub ↗
(self, stats, name)

Source from the content-addressed store, hash-verified

4603 return server_context, other_context, client_context
4604
4605 def check_common_name(self, stats, name):
4606 cert = stats['peercert']
4607 self.assertIn((('commonName', name),), cert['subject'])
4608
4609 def test_sni_callback(self):
4610 calls = []

Callers 1

test_sni_callbackMethod · 0.95

Calls 1

assertInMethod · 0.80

Tested by

no test coverage detected