# Path: anchorhub/exceptions/validationexception.py
# class ValidationException(Exception):
#     def __init__(self, *args, **kwargs):
#         Exception.__init__(self, *args, **kwargs)
# 
# Path: anchorhub/compatibility.py
# def get_path_separator():
#     """
#     Returns the appropriate file path separator depending on operating
#     system. That is, when run on UNIX-like systems it returns a forward slash
#     ('/'), and for Windows it returns a backslash ('\')
#     :return: String. The file path separator for the current operating system.
#     """
#     if os.name == 'nt':
#         return '\\'
#     else:
#         return '/'


from nose.tools import *
from anchorhub.exceptions.validationexception import ValidationException
from anchorhub.compatibility import get_path_separator
import anchorhub.validation.validate_opts as v
        if wrapper is not None:
            self.wrapper = wrapper
        if extensions is not None:
            self.extensions = extensions
        if overwrite is not None:
            self.overwrite = overwrite


def test_validate_good():
    """
    validate_opts.py: Test validate() with good inputs
    """

    a = OptObj(input='.', output='anchorhub-out', wrapper='{ }',
               extensions=['.md'], overwrite=False)
    assert v._validate(a)

    b = OptObj(input='.', output='.', wrapper='{ }',
               extensions=['.md'], overwrite=True)
    assert v._validate(b)

    c = OptObj(input='.', output='anchorhub-out', wrapper='[--> ????',
               extensions=['.md'], overwrite=False)
    assert v._validate(c)

    d = OptObj(input='.', output='anchorhub-out', wrapper='{ }',
               extensions=['.md', '.rst', '.hub'], overwrite=False)
    assert v._validate(d)



# Path: anchorhub/exceptions/validationexception.py
# class ValidationException(Exception):
#     def __init__(self, *args, **kwargs):
#         Exception.__init__(self, *args, **kwargs)
# 
# Path: anchorhub/compatibility.py
# def get_path_separator():
#     """
#     Returns the appropriate file path separator depending on operating
#     system. That is, when run on UNIX-like systems it returns a forward slash
#     ('/'), and for Windows it returns a backslash ('\')
#     :return: String. The file path separator for the current operating system.
#     """
#     if os.name == 'nt':
#         return '\\'
#     else:
#         return '/'


# Path: anchorhub/validation/tests/test_validate_opts.py
from nose.tools import *
from anchorhub.exceptions.validationexception import ValidationException
from anchorhub.compatibility import get_path_separator
import anchorhub.validation.validate_opts as v

        if wrapper is not None:
            self.wrapper = wrapper
        if extensions is not None:
            self.extensions = extensions
        if overwrite is not None:
            self.overwrite = overwrite


def test_validate_good():
    """
    validate_opts.py: Test validate() with good inputs
    """

    a = OptObj(input='.', output='anchorhub-out', wrapper='{ }',
               extensions=['.md'], overwrite=False)
    assert v._validate(a)

    b = OptObj(input='.', output='.', wrapper='{ }',
               extensions=['.md'], overwrite=True)
    assert v._validate(b)

    c = OptObj(input='.', output='anchorhub-out', wrapper='[--> ????',
               extensions=['.md'], overwrite=False)
    assert v._validate(c)

    d = OptObj(input='.', output='anchorhub-out', wrapper='{ }',
               extensions=['.md', '.rst', '.hub'], overwrite=False)
    assert v._validate(d)



@raises(ValidationException)