Commits

Branko Vukelic  committed e8475bf

Fixed language choices test that was failing due to latest changes

  • Participants
  • Parent commits 7ed25f8

Comments (0)

Files changed (1)

File tests/test_i18nmodel_basics.py

     def test_correct_lang_choices(self):
         """
         Test that PostI18N uses language choices that correspond to LANGUAGES
+        minus the default language.
         """
         lang_field = self.get_field(PostI18N, 'i18n_language')
-        self.assertEqual(lang_field.choices, settings.LANGUAGES)
+        for lang in lang_field.choices:
+            self.assertTrue(lang in settings.LANGUAGES)
+        self.assertEqual(len(lang_field.choices), len(settings.LANGUAGES) - 1)