def setUp(self): self.startdir = os.getcwd() self.tmpdir = mkdtemp() os.chdir(self.tmpdir) build_directory({ 'top': { 'nest1': { 'c1.in': '3.14' }, 'c2.in': '5.0' } })
def setUp(self): self.startdir = os.getcwd() self.tempdir = tempfile.mkdtemp() os.chdir(self.tempdir) build_directory(STRUCTURE)