예제 #1
0
    def test_prefix_relative_path(self, input, prefix, output):
        path = Path(pathlib.PurePath(input), None)
        path.prefix_path(pathlib.PurePath(prefix))

        assert str(path.data) == output
예제 #2
0
    def test_prefix_absolute_path(self, input, prefix):
        path = Path(pathlib.PurePath(input), None)
        path.prefix_path(pathlib.PurePath(prefix))

        assert str(path.data) == input