def test_invalid_strip_relative_path(prefix, partial_path): with pytest.raises(_exc.UnsupportedRelativePath): strip_relative_path(prefix, partial_path)
def test_strip_relative_path(prefix, partial_path, expected): path = strip_relative_path(prefix, partial_path) assert path == expected