Esempio n. 1
0
 def test_on_os_errors_calls_os_remove(self, os, shutil):
     shutil.rmtree.side_effect = OSError
     rm_f(self.path)
     os.remove.assert_called_once_with(self.path)
Esempio n. 2
0
 def test_on_os_errors_calls_os_remove(self, os, shutil):
     shutil.rmtree.side_effect = OSError
     rm_f(self.path)
     os.remove.assert_called_once_with(self.path)
Esempio n. 3
0
 def test_calls_shutil_rmtreee(self, shutil):
     rm_f(self.path)
     shutil.rmtree.assert_called_once_with(self.path, ignore_errors=True)
Esempio n. 4
0
 def test_calls_shutil_rmtreee(self, shutil):
     rm_f(self.path)
     shutil.rmtree.assert_called_once_with(self.path, ignore_errors=True)