summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-09-10 14:39:32 -0400
committerHynek Schlawack <hs@ox.cx>2016-09-10 20:39:32 +0200
commit2310f8be403b146d0c57e5d0f551485d72d305f4 (patch)
tree50d7e0b983e7a9f815c857be4017cbe84c8ebada
parent0737a5e4e2dbd2328dd91fc7efd40eafb662c0e4 (diff)
downloadpyopenssl-2310f8be403b146d0c57e5d0f551485d72d305f4.tar.gz
make these tests pass if OP_NO_SSLv2 is 0 (#532)
-rw-r--r--tests/test_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index b52f73b..877edcb 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -777,7 +777,7 @@ class ContextTests(TestCase, _LoopbackMixin):
"""
context = Context(TLSv1_METHOD)
options = context.set_options(OP_NO_SSLv2)
- self.assertTrue(OP_NO_SSLv2 & options)
+ assert options & OP_NO_SSLv2 == OP_NO_SSLv2
@skip_if_py3
def test_set_options_long(self):
@@ -787,7 +787,7 @@ class ContextTests(TestCase, _LoopbackMixin):
"""
context = Context(TLSv1_METHOD)
options = context.set_options(long(OP_NO_SSLv2))
- self.assertTrue(OP_NO_SSLv2 & options)
+ assert options & OP_NO_SSLv2 == OP_NO_SSLv2
def test_set_mode_wrong_args(self):
"""