From 3dfd45111b4e6cba89908626ab18e73506a35462 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 17 Apr 2014 16:02:19 -0400 Subject: Some docstring cleanups. --- OpenSSL/test/test_ssl.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py index b4f81b4..d2fb3a4 100644 --- a/OpenSSL/test/test_ssl.py +++ b/OpenSSL/test/test_ssl.py @@ -1178,8 +1178,8 @@ class ContextTests(TestCase, _LoopbackMixin): def test_set_tmp_ecdh_curve(self): """ - :py:obj:`Context.set_tmp_ecdh_curve` sets the elliptic - curve for Diffie-Hellman to the specified named curve. + :py:obj:`Context.set_tmp_ecdh_curve` sets the elliptic curve for + Diffie-Hellman to the specified named curve. """ context = Context(TLSv1_METHOD) for curve in ELLIPTIC_CURVE_DESCRIPTIONS.keys(): @@ -1205,10 +1205,9 @@ class ContextTests(TestCase, _LoopbackMixin): def test_set_tmp_ecdh_curve_bad_sn(self): """ - :py:obj:`Context.set_tmp_ecdh_curve` raises - :py:obj:`UnknownObject` if passed a curve_name that OpenSSL - does not recognize and EC is available. It raises - :py:obj:`ECNotAvailable` if EC is not available at all. + :py:obj:`Context.set_tmp_ecdh_curve` raises :py:obj:`UnknownObject` if + passed a curve_name that OpenSSL does not recognize and EC is + available. """ context = Context(TLSv1_METHOD) try: @@ -1224,8 +1223,8 @@ class ContextTests(TestCase, _LoopbackMixin): def test_set_tmp_ecdh_curve_not_a_curve(self): """ :py:obj:`Context.set_tmp_ecdh_curve` raises - :py:obj:`UnsupportedEllipticCurve` if passed a curve_name that - OpenSSL cannot instantiate as an elliptic curve. It raises + :py:obj:`UnsupportedEllipticCurve` if passed a curve_name that OpenSSL + cannot instantiate as an elliptic curve. It raises :py:obj:`ECNotAvailable` if EC is not available at all. """ context = Context(TLSv1_METHOD) -- cgit v1.2.1