summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2012-02-14 16:52:43 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2012-02-14 16:52:43 -0500
commit068cb599bb7b3d9e05f82a7d54e6a962719e0816 (patch)
treea391101fa58faa21aac96644f34b06a8e3515246
parent5ea41495ab07f449339b03014c1513429b7625ac (diff)
downloadpyopenssl-068cb599bb7b3d9e05f82a7d54e6a962719e0816.tar.gz
Docstrings are nice
-rw-r--r--OpenSSL/test/test_ssl.py4
1 files changed, 4 insertions, 0 deletions
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)