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

Method check_common_name

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

Source from the content-addressed store, hash-verified

4216 return server_context, other_context, client_context
4217
4218 def check_common_name(self, stats, name):
4219 cert = stats['peercert']
4220 self.assertIn((('commonName', name),), cert['subject'])
4221
4222 def test_sni_callback(self):
4223 calls = []

Callers 1

test_sni_callbackMethod · 0.95

Calls 1

assertInMethod · 0.80

Tested by

no test coverage detected