

def test_fallback_variant(self):
    'Test de-us falls back to de'
    x = SimpleModel()
    x.set_current_language('de')
    x.tr_title = 'Hallo-de'
    x.set_current_language('en')
    self.tr_title = 'Hello-en'
    x.save()
    with translation.override('de-ch'):
        x = SimpleModel.objects.get(pk=x.pk)
        self.assertEqual(x.tr_title, 'Hallo-de')

dataset/ETHPy150Open edoburu/django-parler/parler/tests/test_model_attributes.py ModelAttributeTests.test_fallback_variant/VarMisuse@38/71 `x`->`self`