def test_20_setup_workdir(self): prefix = "tt-" wdir = TT.setup_workdir(prefix=prefix, topdir=self.workdir) self.assertTrue(os.path.basename(wdir).startswith(prefix)) self.assertTrue(os.path.exists(wdir))
def _mk_temporary_workdir(): workdir = setup_workdir() logging.info("Create a temporary workdir: " + workdir) return workdir