'Because two different L{NamedConstant} instances do not compare as
equal to each other, they also have different hashes to avoid
collisions when added to a C{dict} or C{set}.'

def test_hash(self):

    first = NamedConstant()
    first._realize(self.container, 'bar', None)
    second = NamedConstant()
    second._realize(self.container, 'bar', None)
    self.assertNotEqual(hash(first), hash(second))
