@mock.patch('certbot._internal.plugins.selection.choose_configurator_plugins')
@mock.patch('certbot._internal.updater._run_updaters')
def test_plugin_selection_error(self, mock_run, mock_choose):
    mock_choose.side_effect = errors.PluginSelectionError
    self.assertRaises(errors.PluginSelectionError, main.renew_cert, None, None, None)
    self.config.dry_run = False
    updater.run_generic_updaters(self.config, None, None)
    self.assertFalse(mock_run.called)
@mock.patch('certbot._internal.plugins.selection.choose_configurator_plugins')
@mock.patch('certbot._internal.updater._run_updaters')
def test_plugin_selection_error(self, mock_run, mock_choose):
    mock_choose.side_effect = errors.PluginSelectionError
    self.assertRaises(errors.PluginSelectionError, main.renew_cert, None, None, None)
    self.config.dry_run = False
    updater.run_generic_updaters(self.config, None, None)
    self.assertFalse(mock_run.called)