

def test_fallback_language(self):
    '\n        Test whether the fallback language will be returned.\n        '
    x = SimpleModel()
    x.set_current_language(self.conf_fallback)
    x.tr_title = 'TITLE_FALLBACK'
    self.set_current_language(self.other_lang1)
    x.tr_title = 'TITLE_XX'
    x.save()
    with translation.override(self.other_lang2):
        x = SimpleModel.objects.get(pk=x.pk)
        self.assertEqual(x.tr_title, 'TITLE_FALLBACK')

dataset/ETHPy150Open edoburu/django-parler/parler/tests/test_model_attributes.py ModelAttributeTests.test_fallback_language/VarMisuse@33/68 `x`->`self`