Beispiel #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)
Beispiel #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)
Beispiel #3
0
 def test_calls_shutil_rmtreee(self, shutil):
     rm_f(self.path)
     shutil.rmtree.assert_called_once_with(self.path, ignore_errors=True)
Beispiel #4
0
 def test_calls_shutil_rmtreee(self, shutil):
     rm_f(self.path)
     shutil.rmtree.assert_called_once_with(self.path, ignore_errors=True)