  
      urls = 'i18n.urls'
  
      def setUp(self):
          trans_real._accepted = {}
          self.rf = RequestFactory()
  
      def test_check_for_language(self):
          self.assertTrue(check_for_language('en'))
          self.assertTrue(check_for_language('en-us'))
 
</s> remove class CountrySpecificLanguageTests(TestCase):
 </s> add class CountrySpecificLanguageTests(TransRealMixin, TestCase): </s> remove class MiscTests(TestCase):
 </s> add class MiscTests(TransRealMixin, TestCase): </s> remove class LocaleMiddlewareTests(TestCase):
 </s> add class LocaleMiddlewareTests(TransRealMixin, TestCase):
        super(CountrySpecificLanguageTests, self).setUp()
  
      urls = 'i18n.urls'
  
      def setUp(self):
        super(CountrySpecificLanguageTests, self).setUp()
          self.rf = RequestFactory()
  
      def test_check_for_language(self):
          self.assertTrue(check_for_language('en'))
          self.assertTrue(check_for_language('en-us'))
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