(self)
| 4139 | self.assertEqual(cm.exception.errno, errno.ENOTCONN) |
| 4140 | |
| 4141 | def test_do_handshake_enotconn(self): |
| 4142 | context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) |
| 4143 | context.check_hostname = False |
| 4144 | with context.wrap_socket(socket.socket()) as sock: |
| 4145 | with self.assertRaises(OSError) as cm: |
| 4146 | sock.do_handshake() |
| 4147 | self.assertEqual(cm.exception.errno, errno.ENOTCONN) |
| 4148 | |
| 4149 | def test_no_shared_ciphers(self): |
| 4150 | client_context, server_context, hostname = testing_context() |
nothing calls this directly
no test coverage detected