summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Toivonen <heikki@heikkitoivonen.net>2007-07-02 20:25:45 +0000
committerHeikki Toivonen <heikki@heikkitoivonen.net>2007-07-02 20:25:45 +0000
commit81e50c78d1002a4ab2743376615f057be6d58939 (patch)
treec4b9d450d50035e835cf99e7c3dcaa44bfe32c18
parent231d075f67a9e21b940f7265f5e62b3c4b6cbedc (diff)
downloadm2crypto-81e50c78d1002a4ab2743376615f057be6d58939.tar.gz
Show (and test) a workaround for bug 8272.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@567 2715db39-9adf-0310-9c64-84f055769b4b
-rw-r--r--tests/test_ssl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 78e8053..a57f556 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -957,6 +957,10 @@ class ContextTestCase(unittest.TestCase):
def test_ctx_load_verify_locations(self):
ctx = SSL.Context()
self.assertRaises(ValueError, ctx.load_verify_locations, None, None)
+
+ def test_map(self):
+ from M2Crypto.SSL.Context import map, _ctxmap
+ assert isinstance(map(), _ctxmap)
def suite():
suite = unittest.TestSuite()