MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_do_handshake_enotconn

Method test_do_handshake_enotconn

Lib/test/test_ssl.py:3858–3864  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3856 self.assertEqual(cm.exception.errno, errno.ENOTCONN)
3857
3858 def test_do_handshake_enotconn(self):
3859 context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
3860 context.check_hostname = False
3861 with context.wrap_socket(socket.socket()) as sock:
3862 with self.assertRaises(OSError) as cm:
3863 sock.do_handshake()
3864 self.assertEqual(cm.exception.errno, errno.ENOTCONN)
3865
3866 def test_no_shared_ciphers(self):
3867 client_context, server_context, hostname = testing_context()

Callers

nothing calls this directly

Calls 5

wrap_socketMethod · 0.95
socketMethod · 0.80
assertRaisesMethod · 0.45
do_handshakeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected