def validate ( self, object, name, value ):
        if value in self.values:
            return value
        self.error( object, name, value )
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitEnum.validate/original