Ticket #16574: message_tests.diff
File message_tests.diff, 727 bytes (added by , 13 years ago) |
---|
-
django/contrib/messages/tests/base.py
1 1 from django import http 2 2 from django.test import TestCase 3 from django.test.utils import override_settings 3 4 from django.conf import settings 4 5 from django.utils.translation import ugettext_lazy 5 6 from django.utils.unittest import skipIf … … 29 30 storage.add(constants.SUCCESS, 'This was a triumph.') 30 31 31 32 33 @override_settings(MESSAGE_TAGS='') 32 34 class BaseTest(TestCase): 33 35 storage_class = default_storage 34 36 restore_settings = ['MESSAGE_LEVEL', 'MESSAGE_TAGS']