##// END OF EJS Templates
ipy_leo: rename wb..val => wb..v, %leo now opens a file in leo
ipy_leo: rename wb..val => wb..v, %leo now opens a file in leo

File last commit:

r856:50044c43
r989:f2d27822
Show More
test_cd.ipy
18 lines | 289 B | text/plain | TextLexer
vivainio
update test_cd with pushd/popd
r856 # assumes there is /tmp and /opt
def curpath():
cwd = os.path.splitdrive(os.getcwd())[1].replace('\\','/')
print cwd
return cwd
vivainio
-Added a unit testing framework...
r181 import os
cd /
vivainio
update test_cd with pushd/popd
r856 assert curpath() == '/'
vivainio
-Added a unit testing framework...
r181 %cd /tmp
vivainio
update test_cd with pushd/popd
r856 assert curpath() == '/tmp'
pushd /opt
assert curpath() == '/opt'
popd
assert curpath() == '/tmp'
vivainio
-Added a unit testing framework...
r181