"""
These tests ensure 100% code coverage is reached by testing otherwise functionally
explicitly isn't tested due to dependency-injection needs.
"""
import os

from unittest import TestCase

from abl.vpath.base import URI
from abl.webconnector.util import relpath


class Coverage(TestCase):
    def test_relpath(self):
        base = URI("memory:///foobar")
        path = URI("memory:///foobar/baz/padamm")
        self.assertEqual(relpath(base, path), os.sep.join(["baz", "padamm"]))
