def _validate_value(value, data):

    passed = False
    if data == value.value:
        passed = True

    return passed
Validate data against given value directly
dataset/ETHPy150Open geopython/pywps/pywps/validator/literalvalidator.py/_validate_value