':py:meth:`X509Name.hash` returns an integer hash based on the value of the
name.'

def test_hash(self):

    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())
