Example #1
0
 def test_2_chdir(self):
     cwd = os.getcwd()
     f.chdir('tests')
     nCwd = os.getcwd()
     assert nCwd == cwd + '/tests'
     f.chdir(cwd)
Example #2
0
 def chdir(self, directory):
     ''' change to a directory and emit debugging code.
         arguments: directory -- the directory you want to change to
     '''
     assert directory, "no directory variable passed, or value is None"
     _file.chdir(directory)