'Tests for the list of all languages.'

@override_settings(ALL_LANGUAGES=[[u'cs', u'Czech'], [u'nl', u'Dutch']])
def test_all_languages(self):

    with translation.override('fr'):
        all_languages = language_api.all_languages()
    self.assertEqual(2, len(all_languages))
    self.assertLess(all_languages[0][1], all_languages[1][1])
    self.assertEqual('nl', all_languages[0][0])
    self.assertEqual('cs', all_languages[1][0])
    self.assertEqual(u'Hollandais', all_languages[0][1])
    self.assertEqual(u'Tch\xe8que', all_languages[1][1])
