def validate ( self, object, name, value ):
        if value in self.values:
            return value

        self.error( object, name, value )
Validates that the value is one of the enumerated set of valid
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/BaseEnum.validate