

def test_model_fields(self):
    for (code, name) in settings.SUPPORTED_LANGUAGES:
        field_name = ('title_%s' % code)
        self.assertIn(field_name, dir(self.instance._meta.model))

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