Beispiel #1
0
def index_basic():
    cd = os.path.realpath('../../../t')
    WVPASS(cd)
    sd = os.path.realpath(cd + '/sampledata')
    WVPASSEQ(index.realpath(cd + '/sampledata'), cd + '/sampledata')
    WVPASSEQ(os.path.realpath(cd + '/sampledata/x'), sd + '/x')
    WVPASSEQ(os.path.realpath(cd + '/sampledata/etc'), os.path.realpath('/etc'))
    WVPASSEQ(index.realpath(cd + '/sampledata/etc'), sd + '/etc')
Beispiel #2
0
def index_basic():
    cd = os.path.realpath('')
    WVPASS(cd)
    sd = os.path.realpath('t/sampledata')
    WVPASSEQ(index.realpath('t/sampledata'), cd + '/t/sampledata')
    WVPASSEQ(os.path.realpath('t/sampledata/x'), sd + '/x')
    WVPASSEQ(os.path.realpath('t/sampledata/etc'), os.path.realpath('/etc'))
    WVPASSEQ(index.realpath('t/sampledata/etc'), sd + '/etc')
Beispiel #3
0
def index_basic():
    cd = os.path.realpath('../../../t')
    WVPASS(cd)
    sd = os.path.realpath(cd + '/sampledata')
    WVPASSEQ(index.realpath(cd + '/sampledata'), sd)
    WVPASSEQ(os.path.realpath(cd + '/sampledata/x'), sd + '/x')
    WVPASSEQ(os.path.realpath(cd + '/sampledata/var/abs-symlink'),
             sd + '/var/abs-symlink-target')
    WVPASSEQ(index.realpath(cd + '/sampledata/var/abs-symlink'),
             sd + '/var/abs-symlink')
Beispiel #4
0
def index_basic():
    cd = os.path.realpath('../../../t')
    WVPASS(cd)
    sd = os.path.realpath(cd + '/sampledata')
    WVPASSEQ(index.realpath(cd + '/sampledata'), sd)
    WVPASSEQ(os.path.realpath(cd + '/sampledata/x'), sd + '/x')
    WVPASSEQ(os.path.realpath(cd + '/sampledata/var/abs-symlink'),
             sd + '/var/abs-symlink-target')
    WVPASSEQ(index.realpath(cd + '/sampledata/var/abs-symlink'),
             sd + '/var/abs-symlink')