@mock.patch('certbot._internal.main.display_ops.choose_values')
@mock.patch('certbot._internal.main.plug_sel.record_chosen_plugins')
def test_user_abort_domains(self, _rec, mock_choose):
    mock_choose.return_value = []
    with mock.patch('certbot._internal.main.plug_sel.pick_installer'):
        self.assertRaises(errors.Error, self._call, ['enhance', '--redirect', '--hsts'])
@mock.patch('certbot._internal.main.display_ops.choose_values')
@mock.patch('certbot._internal.main.plug_sel.record_chosen_plugins')
def test_user_abort_domains(self, _rec, mock_choose):
    mock_choose.return_value = []
    with mock.patch('certbot._internal.main.plug_sel.pick_installer'):
        self.assertRaises(errors.Error, self._call, ['enhance', '--redirect', '--hsts'])