def teardown(self): FlexGetBase.teardown(self) if getattr(self, 'testfile', None) and os.path.exists(self.testfile): os.remove(self.testfile) temp_dir = os.path.join(self.manager.config_base, 'temp') if os.path.exists(temp_dir) and os.path.isdir(temp_dir): os.rmdir(temp_dir)
def teardown(self): curdir = os.getcwd() os.chdir(self.test_home) for test_dir in self.test_dirs: os.removedirs(test_dir) os.chdir(curdir) os.rmdir(self.test_home) FlexGetBase.teardown(self)
def teardown(self): for dir in self.test_dirs: os.rmdir(os.path.join(self.test_home, dir)) os.rmdir(self.test_home) FlexGetBase.teardown(self)