'Enumeration should have attributes for each value.'

def test_value_attributes(self):

    for (enumtype, params) in self.valid_values.items():
        for (i, key) in enumerate(params['keys']):
            instance = getattr(enumtype, key)
            test_value = enum.EnumValue(enumtype, i, key)
            self.failUnlessEqual(test_value, instance)
