# Path: anchorhub/exceptions/validationexception.py
# class ValidationException(Exception):
#     def __init__(self, *args, **kwargs):
#         Exception.__init__(self, *args, **kwargs)


from anchorhub.exceptions.validationexception import ValidationException
        raise ValueError("Argument passed into wrapper validation must either "
                         "be a single (non-Unicode) string, or a namespace "
                         "with an attribute of 'wrapper'")


def _validate(wrapper):
    """
    Performs validations on a list of extensions. Raises a
    ValidationException if it finds something wrong.

    :param wrapper: a wrapper-defining string
    :raises ValidationException: if the wrapper fails any of the validations
    :return: True if wrapper passes the validations
    """
    validate_two_components(wrapper)
    return True


def validate_two_components(wrapper):
    """
    Make sure that the string defining the wrapper is formatted as two
    'words'. Basically, it should have the format "{open} {close}" with some
    form of white space between the opening and closing patterns. It should
    also have no more than two 'words'

    :param wrapper: String that defines a wrapper
    :raises ValidationException: if wrapper is not formatted correctly
    :return: True if the wrapper is formatted correctly
    """
    if len(wrapper.split()) != 2:

# Path: anchorhub/exceptions/validationexception.py
# class ValidationException(Exception):
#     def __init__(self, *args, **kwargs):
#         Exception.__init__(self, *args, **kwargs)


# Path: anchorhub/validation/validate_wrapper.py
from anchorhub.exceptions.validationexception import ValidationException

        raise ValueError("Argument passed into wrapper validation must either "
                         "be a single (non-Unicode) string, or a namespace "
                         "with an attribute of 'wrapper'")


def _validate(wrapper):
    """
    Performs validations on a list of extensions. Raises a
    ValidationException if it finds something wrong.

    :param wrapper: a wrapper-defining string
    :raises ValidationException: if the wrapper fails any of the validations
    :return: True if wrapper passes the validations
    """
    validate_two_components(wrapper)
    return True


def validate_two_components(wrapper):
    """
    Make sure that the string defining the wrapper is formatted as two
    'words'. Basically, it should have the format "{open} {close}" with some
    form of white space between the opening and closing patterns. It should
    also have no more than two 'words'

    :param wrapper: String that defines a wrapper
    :raises ValidationException: if wrapper is not formatted correctly
    :return: True if the wrapper is formatted correctly
    """
    if len(wrapper.split()) != 2:

        raise ValidationException("Header demarcation must be of the form \n\t"