          'django.middleware.locale.LocaleMiddleware',
          'django.middleware.common.CommonMiddleware',
      ),
  )
  class CountrySpecificLanguageTests(TestCase):
  
      urls = 'i18n.urls'
  
      def setUp(self):
          trans_real._accepted = {}
 
</s> remove class LocaleMiddlewareTests(TestCase):
 </s> add class LocaleMiddlewareTests(TransRealMixin, TestCase): </s> remove         trans_real._accepted = {}
 </s> add         super(CountrySpecificLanguageTests, self).setUp() </s> remove class ContentTypeTests(TestCase):
 </s> add class ContentTypeTests(TransRealMixin, TestCase): </s> remove         # Okay, this is brutal, but we have no other choice to fully reset
        # the translation framework
        trans_real._active = local()
        trans_real._translations = {}
 </s> add         super(ResolutionOrderI18NTests, self).setUp()
class CountrySpecificLanguageTests(TransRealMixin, TestCase):
          'django.middleware.locale.LocaleMiddleware',
          'django.middleware.common.CommonMiddleware',
      ),
  )
class CountrySpecificLanguageTests(TransRealMixin, TestCase):
  
      urls = 'i18n.urls'
  
      def setUp(self):
          trans_real._accepted = {}
keep keep keep keep replace keep keep keep keep keep
 Added TransRealMixin to fix i18n global state pollution in the test suite 
tests/i18n/tests.py