Esempio n. 1
0
 def test_z_reset_env(self):
     """ Set environment back to main framework"""
     sys.path.pop(0)
     # LOG.debug('sys.path: ' + str(sys.path))
     os.chdir(self.cwd)
     LOG.debug("cwd: " + str(self.cwd))
     env.unload_base_modules("test", "test.module")
Esempio n. 2
0
 def test_b_setup(self):
     """ Switch to generated environment."""
     # LOG.debug('self.tstdir: ' + str(self.tstdir))
     sys.path.insert(0, os.path.realpath(self.tstdir))
     LOG.debug("sys.path: " + str(sys.path))
     os.chdir(os.path.join(self.tstdir, os.path.normpath("test_b/company/apps/sample")))
     LOG.debug("cwd: " + str(os.getcwd()))
     env.unload_base_modules("freevolv", "freevolv.test")