def test_ja_not_serial(self):
     with fixture.locale_context('ja_JP.UTF-8'):
         msg = _("'%s' is not a valid serial number") % "123123"
         unicode(to_unicode_or_bust(msg)).encode("UTF-8") + '\n'
 def test_ja_not_serial(self):
     with fixture.locale_context('ja_JP.UTF-8'):
         msg = _("'%s' is not a valid serial number") % "123123"
         unicode(to_unicode_or_bust(msg)).encode("UTF-8") + '\n'
Ejemplo n.º 3
0
 def format_restlib_exception(self, restlib_exception, message_template):
     return message_template % (restlib_exception.code,
                                to_unicode_or_bust(restlib_exception.msg))
Ejemplo n.º 4
0
 def test_ja_not_serial(self):
     msg = _("'%s' is not a valid serial number") % "123123"
     unicode(to_unicode_or_bust(msg)).encode("UTF-8") + '\n'
Ejemplo n.º 5
0
 def format_restlib_exception(self, restlib_exception, message_template):
     return message_template % (restlib_exception.code, to_unicode_or_bust(restlib_exception.msg))