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'
def format_restlib_exception(self, restlib_exception, message_template): return message_template % (restlib_exception.code, to_unicode_or_bust(restlib_exception.msg))
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'
def format_restlib_exception(self, restlib_exception, message_template): return message_template % (restlib_exception.code, to_unicode_or_bust(restlib_exception.msg))