

def test_default_language_descriptor_with_multiple_languages(self):
    m = DefaultLanguageFieldModel(title='hello', title_en='hello', title_fr='bonjour', lang='en')
    m.save()
    self.assertEqual(Translation.objects.count(), 2)
    Translation.objects.all().delete()
    m = DefaultLanguageFieldModel(title_en='hello', title_fr='bonjour', lang='en')
    m.save()
    m.assertEqual(Translation.objects.count(), 2)

dataset/ETHPy150Open ulule/django-linguist/linguist/tests/test_model_mixin.py ModelMixinTest.test_default_language_descriptor_with_multiple_languages/VarMisuse@87/123 `self`->`m`