def verify(self, obj):
        """Verify that the object conforms to this verifier's schema.

        Args:
            obj (object): A python object to verify

        Raises:
            ValidationError: If there is a problem verifying the object, a
                ValidationError is thrown with at least the reason key set indicating
                the reason for the lack of validation.
        """

        if obj not in self.options:
            raise ValidationError("Object is not in list of enumerated options",
                                  reason='not in list of enumerated options', object=obj, options=self.options)

        return obj
def verify ( self , obj ) : if obj not in self . options : raise ValidationError ( "Object is not in list of enumerated options" , reason = 'not in list of enumerated options' , object = obj , options = self . options ) return obj
Verify that the object conforms to this verifier's schema.

        Args:
            obj (object): A python object to verify

        Raises:
            ValidationError: If there is a problem verifying the object, a
                ValidationError is thrown with at least the reason key set indicating
                the reason for the lack of validation.