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


from nose.tools import *
from anchorhub.exceptions.validationexception import ValidationException
import anchorhub.validation.validate_extensions as v
validate_extensions.py:
http://www.github.com/samjabrahams/anchorhub/validation/validate_extensions.py
"""




class ExtSpace(object):
    """
    Simple class to test out namespace implementations of validate_extensions()
    """
    def __init__(self, e=None):
        if e is not None:
            self.extensions = e


def test_validate_correct():
    """
    validate_extensions.py: Test validate() on correct lists
    """
    a = ['.ds', '.md', 'eeyy']
    assert v.validate(a)

    b = ['.md']
    assert v.validate(b)

    c = ['t', 't', 't', 't', 't', 't']
    assert v.validate(c)



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


# Path: anchorhub/validation/tests/test_validate_extensions.py
from nose.tools import *
from anchorhub.exceptions.validationexception import ValidationException
import anchorhub.validation.validate_extensions as v

validate_extensions.py:
http://www.github.com/samjabrahams/anchorhub/validation/validate_extensions.py
"""




class ExtSpace(object):
    """
    Simple class to test out namespace implementations of validate_extensions()
    """
    def __init__(self, e=None):
        if e is not None:
            self.extensions = e


def test_validate_correct():
    """
    validate_extensions.py: Test validate() on correct lists
    """
    a = ['.ds', '.md', 'eeyy']
    assert v.validate(a)

    b = ['.md']
    assert v.validate(b)

    c = ['t', 't', 't', 't', 't', 't']
    assert v.validate(c)



@raises(ValidationException)