(self)
| 1066 | |
| 1067 | @gen_test |
| 1068 | def test_handshake_fail(self): |
| 1069 | server_future = self.server_start_tls(_server_ssl_options()) |
| 1070 | # Certificates are verified with the default configuration. |
| 1071 | with ExpectLog(gen_log, "SSL Error"): |
| 1072 | client_future = self.client_start_tls(server_hostname="localhost") |
| 1073 | with self.assertRaises(ssl.SSLError): |
| 1074 | yield client_future |
| 1075 | with self.assertRaises((ssl.SSLError, socket.error)): |
| 1076 | yield server_future |
| 1077 | |
| 1078 | @gen_test |
| 1079 | def test_check_hostname(self): |
nothing calls this directly
no test coverage detected