      def test_unknown_language_code_and_country_code(self):
          six.assertRaisesRegex(self, KeyError, r"Unknown language code xx-xx and xx\.", get_language_info, 'xx-xx')
  
  
  class MultipleLocaleActivationTests(TestCase):
      """
      Tests for template rendering behavior when multiple locales are activated
      during the lifetime of the same process.
      """
      def setUp(self):
 
</s> remove class LocaleMiddlewareTests(TestCase):
 </s> add class LocaleMiddlewareTests(TransRealMixin, TestCase):
class MultipleLocaleActivationTests(TransRealMixin, TestCase):
      def test_unknown_language_code_and_country_code(self):
          six.assertRaisesRegex(self, KeyError, r"Unknown language code xx-xx and xx\.", get_language_info, 'xx-xx')
  
  
class MultipleLocaleActivationTests(TransRealMixin, TestCase):
      """
      Tests for template rendering behavior when multiple locales are activated
      during the lifetime of the same process.
      """
      def setUp(self):
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