commit | 7da26a7140d151a301a7c970b2681c1903f02889 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@boson> | Thu Mar 06 00:35:20 2008 -0500 |
committer | Jean-Paul Calderone <exarkun@boson> | Thu Mar 06 00:35:20 2008 -0500 |
tree | 3f66de7641cc190d8538d46d9ed1b92acd665ab0 | |
parent | d71fe9855e12e1a5cb2b29d1f994f57627703882 [diff] [blame] |
Define assertTrue for Python 2.3 compatibility
diff --git a/test/test_crypto.py b/test/test_crypto.py index afe8831..7f3e2d3 100644 --- a/test/test_crypto.py +++ b/test/test_crypto.py
@@ -12,6 +12,11 @@ """ Unit tests for L{OpenSSL.crypto.PKey}. """ + # Python 2.3 compatibility. + def assertTrue(self, *a, **kw): + return self.failUnless(*a, **kw) + + def test_construction(self): """ L{PKey} takes no arguments and returns a new L{PKeyType} instance.