'Each EnumValue instance should have same hash as its value.'

def test_hash_equal(self):

    for (enumtype, params) in self.valid_values.items():
        for (i, key) in enumerate(params['keys']):
            instance = params['values'][key]
            self.failUnlessEqual(hash(i), hash(instance))
