X509Name.hash
diff --git a/test/test_crypto.py b/test/test_crypto.py
index 4c66c62..e853094 100644
--- a/test/test_crypto.py
+++ b/test/test_crypto.py
@@ -265,6 +265,19 @@
+ def test_hash(self):
+ """
+ L{X509Name.hash} returns an integer hash based on the value of the
+ name.
+ """
+ a = self._x509name(CN="foo")
+ b = self._x509name(CN="foo")
+ self.assertEqual(a.hash(), b.hash())
+ a.CN = "bar"
+ self.assertNotEqual(a.hash(), b.hash())
+
+
+
class _PKeyInteractionTestsMixin:
"""
Tests which involve another thing and a PKey.