# Path: mcm/exceptions.py
# class ValidateError(Exception):
#     '''
#     Exception raised when a general validation error occurs.
#     '''


from mcm.exceptions import ValidateError
# -*- coding: UTF-8 -*-



def validate_list(lst, allowed):

    forbidden = set(lst) - set(allowed)
    if forbidden:
        raise ValidateError()

def validate_value(val, allowed):

    if val not in allowed:

# Path: mcm/exceptions.py
# class ValidateError(Exception):
#     '''
#     Exception raised when a general validation error occurs.
#     '''


# Path: mcm/validators.py
from mcm.exceptions import ValidateError

# -*- coding: UTF-8 -*-



def validate_list(lst, allowed):

    forbidden = set(lst) - set(allowed)
    if forbidden:
        raise ValidateError()

def validate_value(val, allowed):

    if val not in allowed:

        raise ValidateError()