def test_hashable(self):
        """
        Instances of all record types are hashable.
        """
        for k in RECORD_TYPES:
            k1, k2 = k(), k()
            hk1 = hash(k1)
            hk2 = hash(k2)
            self.assertEqual(hk1, hk2, "%s != %s (for %s)" % (hk1,hk2,k))

        Instances of all record types are hashable.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py