示例#1
0
    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))
示例#2
0
def _mk_temporary_workdir():
    workdir = setup_workdir()
    logging.info("Create a temporary workdir: " + workdir)
    return workdir