def tearDown(self): if self.clear_dirs_each_time: self.clearDirs() DBTestCase.tearDown(self)
def setUp(self): DBTestCase.setUp(self) if not hasattr(self, 'tmp_dir') or not os.path.exists(self.tmp_dir): self.setUpDirs()