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.