def setUp(self): """ Creates the directory with some files in it. """ UnitTestBase.setUp(self) self._files = ["a.txt", "b.html", "c.txtl", "español.txt"] os.mkdir(self.get_ext_dir()) for mem in self._files: f = open(os.path.join(self.get_ext_dir(), mem), "w") f.write("lorem ipsum") f.close()
def setUp(self): UnitTestBase.setUp(self)
def tearDown(self): UnitTestBase.tearDown(self) if "_config" in tools.__dict__: del tools.__dict__["_config"]
def setUp(self): UnitTestBase.setUp(self) tools._config = {}