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

Method test_tls_unique_channel_binding

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

Source from the content-addressed store, hash-verified

762 @unittest.skipUnless("tls-unique" in ssl.CHANNEL_BINDING_TYPES,
763 "'tls-unique' channel binding not available")
764 def test_tls_unique_channel_binding(self):
765 # unconnected should return None for known type
766 s = socket.socket(socket.AF_INET)
767 with test_wrap_socket(s) as ss:
768 self.assertIsNone(ss.get_channel_binding("tls-unique"))
769 # the same for server-side
770 s = socket.socket(socket.AF_INET)
771 with test_wrap_socket(s, server_side=True, certfile=CERTFILE) as ss:
772 self.assertIsNone(ss.get_channel_binding("tls-unique"))
773
774 def test_dealloc_warn(self):
775 ss = test_wrap_socket(socket.socket(socket.AF_INET))

Callers

nothing calls this directly

Calls 4

test_wrap_socketFunction · 0.85
socketMethod · 0.80
assertIsNoneMethod · 0.80
get_channel_bindingMethod · 0.45

Tested by

no test coverage detected