def METHOD_NAME(self):
    d = dns.immutable.Dict({"a": 1, "b": 2})
    self.assertEqual(d._hash, None)
    h1 = hash(d)
    self.assertEqual(d._hash, h1)
    h2 = hash(d)
    self.assertEqual(h1, h2)