Beispiel #1
0
 def test_view_config_changes_throws_error_from_reverter(
         self, mock_view_config_changes):
     mock_view_config_changes.side_effect = errors.ReverterError("foo")
     self.assertRaises(errors.PluginError, self.config.view_config_changes)
Beispiel #2
0
 def test_recovery_routine_throws_error_from_reverter(
         self, mock_recovery_routine):
     mock_recovery_routine.side_effect = errors.ReverterError("foo")
     self.assertRaises(errors.PluginError, self.config.recovery_routine)
Beispiel #3
0
 def test_revert_challenge_config_throws_error_from_reverter(self, mock_revert_temporary_config):
     mock_revert_temporary_config.side_effect = errors.ReverterError("foo")
     self.assertRaises(errors.PluginError, self.config.revert_challenge_config)
Beispiel #4
0
 def test_save_throws_error_from_reverter(self, mock_add_to_checkpoint):
     mock_add_to_checkpoint.side_effect = errors.ReverterError("foo")
     self.assertRaises(errors.PluginError, self.config.save)
Beispiel #5
0
 def test_rollback_checkpoints_throws_error_from_reverter(self, mock_rollback_checkpoints):
     mock_rollback_checkpoints.side_effect = errors.ReverterError("foo")
     self.assertRaises(errors.PluginError, self.config.rollback_checkpoints)