'An EnumValue should compare equal to its value.'

def test_compare_equal(self):

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