(self)
| 750 | server_hostname="some.hostname") |
| 751 | |
| 752 | def test_unknown_channel_binding(self): |
| 753 | # should raise ValueError for unknown type |
| 754 | s = socket.create_server(('127.0.0.1', 0)) |
| 755 | c = socket.socket(socket.AF_INET) |
| 756 | c.connect(s.getsockname()) |
| 757 | with test_wrap_socket(c, do_handshake_on_connect=False) as ss: |
| 758 | with self.assertRaises(ValueError): |
| 759 | ss.get_channel_binding("unknown-type") |
| 760 | s.close() |
| 761 | |
| 762 | @unittest.skipUnless("tls-unique" in ssl.CHANNEL_BINDING_TYPES, |
| 763 | "'tls-unique' channel binding not available") |
nothing calls this directly
no test coverage detected