  
  
      def test_get_language_from_request(self):
          r = self.rf.get('/')
          r.COOKIES = {}
          r.META = {'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,bg;q=0.6,ru;q=0.4'}
          lang = get_language_from_request(r)
 
</s> remove         trans_real._accepted = {}
 </s> add         super(CountrySpecificLanguageTests, self).setUp() </s> remove class CountrySpecificLanguageTests(TestCase):
 </s> add class CountrySpecificLanguageTests(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() </s> remove class FormattingTests(TestCase):
 </s> add class FormattingTests(TransRealMixin, TestCase):
        # issue 19919
  
  
      def test_get_language_from_request(self):
        # issue 19919
          r = self.rf.get('/')
          r.COOKIES = {}
          r.META = {'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,bg;q=0.6,ru;q=0.4'}
          lang = get_language_from_request(r)
keep keep add keep keep keep keep
 Added TransRealMixin to fix i18n global state pollution in the test suite 
tests/i18n/tests.py