예제 #1
0
 def test_get_languages_i18n(self):
     languages = utils.get_languages()
     self.assertEqual(len(languages), 2)
     self.assertEqual(languages, ['fr', 'en'])
예제 #2
0
 def test_get_languages_no_i18n(self):
     languages = utils.get_languages()
     self.assertEqual(languages, None)