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 dictionary, a
                ValidationError is thrown with at least the reason key set indicating
                the reason for the lack of validation.
        """

        if obj != self._literal:
            raise ValidationError("Object is not equal to literal",
                                  reason='%s is not equal to %s' % (str(obj), str(self._literal)), object=obj)

        return obj
def verify ( self , obj ) : if obj != self . _literal : raise ValidationError ( "Object is not equal to literal" , reason = '%s is not equal to %s' % ( str ( obj ) , str ( self . _literal ) ) , object = obj ) 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 dictionary, a
                ValidationError is thrown with at least the reason key set indicating
                the reason for the lack of validation.