

def test_empty_model(self):
    '\n        Test whether a translated model without any fields still works.\n        '
    x = EmptyModel()
    x.set_current_language('en', initialize=True)
    x.set_current_language('fr', initialize=True)
    x.set_current_language('es')
    x.set_current_language('nl', initialize=True)
    x.save()
    self.assertEqual(sorted(x.get_available_languages()), ['en', 'fr', 'nl'])

dataset/ETHPy150Open edoburu/django-parler/parler/tests/test_model_attributes.py ModelAttributeTests.test_empty_model/original