From 068cb599bb7b3d9e05f82a7d54e6a962719e0816 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Tue, 14 Feb 2012 16:52:43 -0500 Subject: Docstrings are nice --- OpenSSL/test/test_ssl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py index e241112..721c1c0 100644 --- a/OpenSSL/test/test_ssl.py +++ b/OpenSSL/test/test_ssl.py @@ -1546,6 +1546,10 @@ class ConnectionTests(TestCase, _LoopbackMixin): def test_set_session_wrong_method(self): """ + If :py:obj:`Connection.set_session` is passed a :py:class:`Session` + instance associated with a context using a different SSL method than the + :py:obj:`Connection` is using, a :py:class:`OpenSSL.SSL.Error` is + raised. """ key = load_privatekey(FILETYPE_PEM, server_key_pem) cert = load_certificate(FILETYPE_PEM, server_cert_pem) -- cgit v1.2.1