(self)
| 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)) |
nothing calls this directly
no test coverage detected