MCPcopy
hub / github.com/tornadoweb/tornado / test_handshake_fail

Method test_handshake_fail

tornado/test/iostream_test.py:1068–1076  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

server_start_tlsMethod · 0.95
client_start_tlsMethod · 0.95
ExpectLogClass · 0.90
_server_ssl_optionsFunction · 0.85

Tested by

no test coverage detected