WIP #21230: Remove some direct settings manipulations in tests

See [ticket 21230](https://code.djangoproject.com/ticket/21230). The ticket is marked as 'easy pickings', however there is quite some work to be done and not everything is [straight-forward](https://code.djangoproject.com/ticket/21230#comment:2). So I started off with some low hanging fruit. This doesn't close the ticket, as there are quite a few remaining places where settings are manipulated.

There might be some problem with code style, especially in places of multiline decorator calls. Please advice on how the patch should be improved.

This is the progress so far on rewriting the occurrences of direct settings manipulations:

- [x] admin_views/tests.py
- [x] comment_tests/tests/test_comment_form.py
- [x] generic_inline_admin/tests.py
- [x] i18n/tests.py
- [x] managers_regress/tests.py
- [x] middleware_exceptions/tests.py
- [x] modeladmin/tests.py
- [x] proxy_models/tests.py
- [ ] runtests.py
- [x] select_for_update/tests.py
- [x] serializers/tests.py
- [ ] settings_tests/tests.py
- [ ] staticfiles_tests/tests.py
- [x] template_tests/test_loaders.py
- [x] template_tests/test_response.py
- [ ] template_tests/tests.py
- [x] test_client/tests.py
- [x] urlpatterns_reverse/tests.py