# 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
    assert results == "pika/plop"


def test_007(finder):
    results = finder.get_relative_from_paths("/home/foo/pika/plop", [
        "/etc",
        "/home/foo/pika",
        "/home/bar/pika",
        "/home/bar",
    ])

    assert results == "plop"


def test_008(finder):
    results = finder.get_relative_from_paths("/home/foo/pika/bim/bam/plop", [
        "/etc",
        "/home/foo/pika/bim/bam",
        "/home/foo/pika/bim/bom",
        "/home/bar/pika",
        "/home/bar",
    ])

    assert results == "plop"


def test_009(finder):
    """
    Unable to find relative 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/005_relativefrompaths.py
import pytest
from boussole.exceptions import FinderException

    assert results == "pika/plop"


def test_007(finder):
    results = finder.get_relative_from_paths("/home/foo/pika/plop", [
        "/etc",
        "/home/foo/pika",
        "/home/bar/pika",
        "/home/bar",
    ])

    assert results == "plop"


def test_008(finder):
    results = finder.get_relative_from_paths("/home/foo/pika/bim/bam/plop", [
        "/etc",
        "/home/foo/pika/bim/bam",
        "/home/foo/pika/bim/bom",
        "/home/bar/pika",
        "/home/bar",
    ])

    assert results == "plop"


def test_009(finder):
    """
    Unable to find relative path raise an exception
    """

    with pytest.raises(FinderException):