(self)
| 668 | server_hostname="some.hostname") |
| 669 | |
| 670 | def test_unknown_channel_binding(self): |
| 671 | # should raise ValueError for unknown type |
| 672 | s = socket.create_server(('127.0.0.1', 0)) |
| 673 | c = socket.socket(socket.AF_INET) |
| 674 | c.connect(s.getsockname()) |
| 675 | with test_wrap_socket(c, do_handshake_on_connect=False) as ss: |
| 676 | with self.assertRaises(ValueError): |
| 677 | ss.get_channel_binding("unknown-type") |
| 678 | s.close() |
| 679 | |
| 680 | @unittest.skipUnless("tls-unique" in ssl.CHANNEL_BINDING_TYPES, |
| 681 | "'tls-unique' channel binding not available") |
nothing calls this directly
no test coverage detected