def test_gettext(self): t = MultiStringTranslation('de') t._catalog['KEY'] = ['VALUE1', 'VALUE2', 'VALUE3'] self.assertIn(t.gettext('KEY'), ['VALUE1', 'VALUE2', 'VALUE3'])
def test_gettext_empty_catalog(self): t = MultiStringTranslation('de') self.assertEqual(t.gettext('ABC'), 'ABC')