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'
예제 #3
0
파일: exceptions.py 프로젝트: Lorquas/rhsm
 def format_restlib_exception(self, restlib_exception, message_template):
     return message_template % (restlib_exception.code,
                                to_unicode_or_bust(restlib_exception.msg))
예제 #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'
예제 #5
0
 def format_restlib_exception(self, restlib_exception, message_template):
     return message_template % (restlib_exception.code, to_unicode_or_bust(restlib_exception.msg))