def test_gettext_unknown():
    s = i18n.gettext('unknown')
    assert isinstance(s, str)
    assert s == 'unknown'
def test_gettext():
    s = i18n.gettext('hello')
    assert isinstance(s, str)
    assert s == 'bonjour'
def test_gettext_params():
    s = i18n.gettext('Holidays', year=2010)
    assert isinstance(s, str)
    assert s == 'Vacances 2010'
Beispiel #4
0
def test_gettext_params():
    s = i18n.gettext('Holidays', year=2010)
    assert isinstance(s, str) and (s == 'Vacances 2010')
Beispiel #5
0
def test_gettext_unknown():
    i18n.set_locale(i18n.Locale('fr', 'FR'))
    s = i18n.gettext('unknown')
    assert isinstance(s, str) and (s == 'unknown')
Beispiel #6
0
 def test_gettext_unknown(self):
     i18n.set_locale(i18n.Locale('fr', 'FR'))
     s = i18n.gettext('unknown')
     self.assertIsInstance(s, str)
     self.assertEqual(s, 'unknown')
Beispiel #7
0
def test_gettext():
    s = i18n.gettext('hello')
    assert isinstance(s, str) and (s == 'bonjour')
Beispiel #8
0
 def test_gettext_params(self):
     s = i18n.gettext('Holidays', year=2010)
     self.assertIsInstance(s, str)
     self.assertEqual(s, 'Vacances 2010')
Beispiel #9
0
 def test_gettext(self):
     s = i18n.gettext('hello')
     self.assertTrue(isinstance(s, str))
     self.assertEqual(s, 'bonjour')
Beispiel #10
0
 def test_gettext_unknown(self):
     i18n.set_locale(i18n.Locale('fr', 'FR'))
     s = i18n.gettext('unknown')
     self.assertIsInstance(s, str)
     self.assertEqual(s, 'unknown')
Beispiel #11
0
 def test_gettext_params(self):
     s = i18n.gettext('Holidays', year=2010)
     self.assertIsInstance(s, str)
     self.assertEqual(s, 'Vacances 2010')
Beispiel #12
0
 def test_gettext(self):
     s = i18n.gettext('hello')
     self.assertTrue(isinstance(s, str))
     self.assertEqual(s, 'bonjour')