# Path: boussole/exceptions.py
# class FinderException(BoussoleBaseException):
#     """
#     Exception to be raised when error occurs with finder usage.
#     """
#     pass


import pytest
from boussole.exceptions import FinderException
            "foo.scss",
            "bar/*.scss",
            "*.scss",
            "*.css",
        ],
        False
    ),
    (
        "pika/bar/foo.sass",
        [
            "foo.sass",
            "bar/*.sass",
            "*.sass",
            "*.css",
        ],
        False
    ),
])
def test_allowed_001(settings, finder, filepath, excludes, expected):
    """
    Allowed simple filename
    """
    allowed = finder.is_allowed(filepath, excludes=excludes)
    assert expected == allowed


def test_allowed_exception_201(settings, finder):
    """
    Absolute path raise an exception
    """

# Path: boussole/exceptions.py
# class FinderException(BoussoleBaseException):
#     """
#     Exception to be raised when error occurs with finder usage.
#     """
#     pass


# Path: tests/002_finder/002_isallowed.py
import pytest
from boussole.exceptions import FinderException

            "foo.scss",
            "bar/*.scss",
            "*.scss",
            "*.css",
        ],
        False
    ),
    (
        "pika/bar/foo.sass",
        [
            "foo.sass",
            "bar/*.sass",
            "*.sass",
            "*.css",
        ],
        False
    ),
])
def test_allowed_001(settings, finder, filepath, excludes, expected):
    """
    Allowed simple filename
    """
    allowed = finder.is_allowed(filepath, excludes=excludes)
    assert expected == allowed


def test_allowed_exception_201(settings, finder):
    """
    Absolute path raise an exception
    """

    with pytest.raises(FinderException):