]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/tindex.py
helpers: rename realpath to resolve_parent
[bup.git] / lib / bup / t / tindex.py
index 3ec4939e5a4b415a039d97284f2b295d5fd79ebf..14a8d4acaafc8aee6180921a5b7c1db7766ed6bb 100644 (file)
@@ -1,8 +1,11 @@
 import os
 import time, tempfile
+
 from bup import index, metadata
 from bup.helpers import *
+import bup.helpers as helpers
 import bup.xstat as xstat
+
 from wvtest import *
 
 lib_t_dir = os.getcwd()
@@ -14,12 +17,12 @@ def index_basic():
     cd = os.path.realpath('../../../t')
     WVPASS(cd)
     sd = os.path.realpath(cd + '/sampledata')
-    WVPASSEQ(index.realpath(cd + '/sampledata'), sd)
+    WVPASSEQ(helpers.resolve_parent(cd + '/sampledata'), sd)
     WVPASSEQ(os.path.realpath(cd + '/sampledata/x'), sd + '/x')
-    WVPASSEQ(os.path.realpath(cd + '/sampledata/abs-symlink'),
-             sd + '/abs-symlink-target')
-    WVPASSEQ(index.realpath(cd + '/sampledata/abs-symlink'),
-             sd + '/abs-symlink')
+    WVPASSEQ(os.path.realpath(cd + '/sampledata/var/abs-symlink'),
+             sd + '/var/abs-symlink-target')
+    WVPASSEQ(helpers.resolve_parent(cd + '/sampledata/var/abs-symlink'),
+             sd + '/var/abs-symlink')
 
 
 @wvtest