@mock.patch('certbot._internal.plugins.selection.choose_configurator_plugins')
def test_renew_with_configurator(self, mock_sel):
    mock_sel.return_value = (mock.MagicMock(), mock.MagicMock())
    renewalparams = {'authenticator': 'webroot'}
    self._test_renew_common(renewalparams=renewalparams, assert_oc_called=True, args='renew --configurator apache'.split())
@mock.patch('certbot._internal.plugins.selection.choose_configurator_plugins')
def test_renew_with_configurator(self, mock_sel):
    mock_sel.return_value = (mock.MagicMock(), mock.MagicMock())
    renewalparams = {'authenticator': 'webroot'}
    self._test_renew_common(renewalparams=renewalparams, assert_oc_called=True, args='renew --configurator apache'.split())