Ejemplo n.º 1
0
def test_invalid_strip_relative_path(prefix, partial_path):
    with pytest.raises(_exc.UnsupportedRelativePath):
        strip_relative_path(prefix, partial_path)
Ejemplo n.º 2
0
def test_strip_relative_path(prefix, partial_path, expected):
    path = strip_relative_path(prefix, partial_path)
    assert path == expected