

def test_no_translation_default_language(self):
    m = FooModel(title_en='hello', title_fr='bonjour')
    m.save()
    saved_lang = translation.get_language()
    translation.activate('it')
    self.assertEqual(m.title, 'hello')
    translation.activate(saved_lang)

dataset/ETHPy150Open ulule/django-linguist/linguist/tests/test_model_mixin.py ModelMixinTest.test_no_translation_default_language/original