/usr/lib/python2.6/site-packages/oslo_i18n/tests
NameSizeModeActions
fakes.py20080644editdlrm
fakes.pyc21310644editdlrm
test_factory.py62020644editdlrm
test_factory.pyc66390644editdlrm
test_fixture.py43350644editdlrm
test_fixture.pyc47860644editdlrm
test_gettextutils.py55330644editdlrm
test_gettextutils.pyc54940644editdlrm
test_handler.py43330644editdlrm
test_handler.pyc38880644editdlrm
test_lazy.py12420644editdlrm
test_lazy.pyc14810644editdlrm
test_locale_dir_variable.py12240644editdlrm
test_locale_dir_variable.pyc11670644editdlrm
test_logging.py13340644editdlrm
test_logging.pyc18180644editdlrm
test_message.py278700644editdlrm
test_message.pyc231990644editdlrm
test_public_api.py13490644editdlrm
test_public_api.pyc19070644editdlrm
test_translate.py16680644editdlrm
test_translate.pyc14520644editdlrm
utils.py11470644editdlrm
utils.pyc17240644editdlrm
__init__.py00644editdlrm
__init__.pyc1460644editdlrm
Edit: /usr/lib/python2.6/site-packages/oslo_i18n/tests/test_handler.pyc (3888B)
Ņō yDVc @sddkZddkZddklZddkZddklZddklZ ddk l Z ei e ƒZdeifd„ƒYZdS(iĸĸĸĸN(tbase(t_message(tlog(tfakestTranslationHandlerTestCasecBsbeZd„Zd„Zeidƒd„ƒZeidƒd„ƒZeidƒd„ƒZRS(cCs˜tt|ƒiƒtiƒ|_ti|iƒ|_t i dƒ|_ |i i |iƒti dƒ|_|iitiƒ|ii|i ƒdS(Ntzh_CNtlocalehander_logger(tsuperRtsetUptsixtStringIOtstreamtloggingt StreamHandlertdestination_handlerti18n_logtTranslationHandlerttranslation_handlert setTargett getLoggertloggertsetLeveltDEBUGt addHandler(tself((s?/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/tests/test_handler.pyR scCs3d}|ii|ƒ|i||iiiƒdS(Nssome formatter(Rt setFormattert assertEqualttargett formatter(RR((s?/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/tests/test_handler.pyttest_set_formatter,ssgettext.translationcCs}d}d}h||6}h|d6}tii|ƒ}||_ti|ƒ}|ii|ƒ|i||i i ƒƒdS(NsA message to be loggeds!A message to be logged in ChineseR( RtFakeTranslationst translatort side_effectRtMessageRtinfotassertInR tgetvalue(Rtmock_translationt log_messagetlog_message_translationt translationsttranslations_mapRtmsg((s?/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/tests/test_handler.pyttest_emit_translated_message1s   c CsĶd}d}d}d}h||6||6}h|d6}tii|ƒ}||_ti|ƒ} ti|ƒ} |ii| | ƒ|i|||i i ƒƒdS(NsA message to be logged %ss$A message to be logged in Chinese %ssArg to be loggedsAn arg to be logged in ChineseR( RRRR RR!RR"R#R R$( RR%R&R'tlog_argtlog_arg_translationR(R)RR*targ((s?/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/tests/test_handler.pyt&test_emit_translated_message_with_args?s     cCsęd}d}d}d}d}d}h||6||6||6}h|d6} tii| ƒ} | |_ti|ƒ} ti|ƒ} ti|ƒ} |ii| h| d6| d 6ƒ|h|d6|d 6}|i||i i ƒƒdS( Ns(A message to be logged %(arg1)s $(arg2)ss*Chinese msg to be logged %(arg1)s $(arg2)ssArg1 to be loggedsArg1 to be logged in ChinesesArg2 to be loggedsArg2 to be logged in ChineseRtarg1targ2( RRRR RR!RR"R#R R$(RR%R&R't log_arg_1tlog_arg_1_translationt log_arg_2tlog_arg_2_translationR(R)RR*targ_1targ_2t translation((s?/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/tests/test_handler.pyt,test_emit_translated_message_with_named_argsSs&    !  ( t__name__t __module__RRtmocktpatchR+R/R9(((s?/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/tests/test_handler.pyRs  (R R<toslotestRt test_baseR t oslo_i18nRRRtoslo_i18n.testsRRR:tLOGt BaseTestCaseR(((s?/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/tests/test_handler.pyts