def test_lazy_gettext_params():
    s = i18n.lazy_gettext('Holidays', year=2010)
    assert s.__class__.__name__ == 'LazyProxy'
    assert isinstance(s.value, str)
    assert s == 'Vacances 2010'
示例#2
0
def test_lazy_gettext_params():
    s = i18n.lazy_gettext('Holidays', year=2010)
    assert s.__class__.__name__ == 'LazyProxy'
    assert isinstance(s.value, str) and (s == 'Vacances 2010')
def test_lazy_gettext():
    s = i18n.lazy_gettext('hello')
    assert s.__class__.__name__ == 'LazyProxy'
    assert isinstance(s.value, str)
    assert s == 'bonjour'
示例#4
0
def test_lazy_gettext():
    s = i18n.lazy_gettext('hello')
    assert s.__class__.__name__ == 'LazyProxy'
    assert isinstance(s.value, str) and (s == 'bonjour')
示例#5
0
 def test_lazy_gettext_params(self):
     s = i18n.lazy_gettext('Holidays', year=2010)
     self.assertEqual(s.__class__.__name__, 'LazyProxy')
     self.assertIsInstance(s.value, str)
     self.assertEqual(s, 'Vacances 2010')
示例#6
0
 def test_lazy_gettext(self):
     s = i18n.lazy_gettext('hello')
     self.assertEqual(s.__class__.__name__, 'LazyProxy')
     self.assertIsInstance(s.value, str)
     self.assertEqual(s, 'bonjour')
示例#7
0
 def test_lazy_gettext_params(self):
     s = i18n.lazy_gettext('Holidays', year=2010)
     self.assertEqual(s.__class__.__name__, 'LazyProxy')
     self.assertIsInstance(s.value, str)
     self.assertEqual(s, 'Vacances 2010')
示例#8
0
 def test_lazy_gettext(self):
     s = i18n.lazy_gettext('hello')
     self.assertEqual(s.__class__.__name__, 'LazyProxy')
     self.assertIsInstance(s.value, str)
     self.assertEqual(s, 'bonjour')