def setUp(self): from detail.shutil import rmtree self.temp_path = './__tmp_testing__' rmtree(self.temp_path) os.mkdir(self.temp_path) self.assertEqual( [x for x in os.walk(self.temp_path)], [('./__tmp_testing__', [], [])] )
def tearDown(self): from detail.shutil import rmtree self.temp_path = './__tmp_testing__' rmtree(self.temp_path)