Пример #1
0
 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__', [], [])]
   )
Пример #2
0
 def tearDown(self):
   from detail.shutil import rmtree
   self.temp_path = './__tmp_testing__'
   rmtree(self.temp_path)