]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/thelpers.py
save: make --strip-path=/ a no-op
[bup.git] / lib / bup / t / thelpers.py
index 68004b72f03e69633fa765d776144a90c3e90b42..79eb4af444dd82380aa931bcb042984462035aaf 100644 (file)
@@ -70,6 +70,8 @@ def test_stripped_path_components():
     WVPASSEQ(stripped_path_components('/', []), [('', '/')])
     WVPASSEQ(stripped_path_components('/', ['']), [('', '/')])
     WVPASSEQ(stripped_path_components('/', ['/']), [('', '/')])
+    WVPASSEQ(stripped_path_components('/foo', ['/']),
+             [('', '/'), ('foo', '/foo')])
     WVPASSEQ(stripped_path_components('/', ['/foo']), [('', '/')])
     WVPASSEQ(stripped_path_components('/foo', ['/bar']),
              [('', '/'), ('foo', '/foo')])