Ticket #16574: message_tests.diff

File message_tests.diff, 727 bytes (added by elbarto, 13 years ago)
  • django/contrib/messages/tests/base.py

     
    11from django import http
    22from django.test import TestCase
     3from django.test.utils import override_settings
    34from django.conf import settings
    45from django.utils.translation import ugettext_lazy
    56from django.utils.unittest import skipIf
     
    2930    storage.add(constants.SUCCESS, 'This was a triumph.')
    3031
    3132
     33@override_settings(MESSAGE_TAGS='')
    3234class BaseTest(TestCase):
    3335    storage_class = default_storage
    3436    restore_settings = ['MESSAGE_LEVEL', 'MESSAGE_TAGS']
Back to Top