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
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