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')