def _validate_value(value, data):
    """Validate data against given value directly

    :param value: list or tupple with allowed data
    :param data: the data itself (string or number)
    """
    passed = False
    if data == value.value:
        passed = True
    return passed
