  
      def tearDown(self):
          deactivate()
  
      def assertUgettext(self, msgid, msgstr):
          result = ugettext(msgid)
          self.assertTrue(msgstr in result, ("The string '%s' isn't in the "
              "translation of '%s'; the actual result is '%s'." % (msgstr, msgid, result)))
 
</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 MultipleLocaleActivationTests(TestCase):
 </s> add class MultipleLocaleActivationTests(TransRealMixin, TestCase):
        super(ResolutionOrderI18NTests, self).tearDown()
  
      def tearDown(self):
          deactivate()
        super(ResolutionOrderI18NTests, self).tearDown()
  
      def assertUgettext(self, msgid, msgstr):
          result = ugettext(msgid)
          self.assertTrue(msgstr in result, ("The string '%s' isn't in the "
              "translation of '%s'; the actual result is '%s'." % (msgstr, msgid, result)))
keep keep add keep keep keep keep keep
 Added TransRealMixin to fix i18n global state pollution in the test suite 
tests/i18n/tests.py