ó û^‚Rc@s>ddlZddlZddlmZddlmZddlZddlZdejfd„ƒYZe ej j ƒZ x!dddd fD] Z e e =qŽWeeed „Zee d RRR+t_is_relevant_tb_levelRR<R=R(RR;R((s//usr/lib/python2.7/unittest/test/test_result.pyttestStackFrameTrimmings  cCsÄtjƒ}d„|_t|_|jddƒ|j|jƒtjƒ}d„|_t|_|j ddƒ|j|jƒtjƒ}d„|_t|_|j dƒ|j|jƒdS(NcWsdS(Nt((t_((s//usr/lib/python2.7/unittest/test/test_result.pytscWsdS(NRB((RC((s//usr/lib/python2.7/unittest/test/test_result.pyRDscWsdS(NRB((RC((s//usr/lib/python2.7/unittest/test/test_result.pyRDs( RRt_exc_info_to_stringRtfailfastR3R6RR R*taddUnexpectedSuccess(RR((s//usr/lib/python2.7/unittest/test/test_result.pyt testFailFasts          cs;tjdtƒdtƒ}‡fd†}|j|ƒdS(NtstreamRFcsˆj|jƒdS(N(RRF(R(R(s//usr/lib/python2.7/unittest/test/test_result.pyR%s(RtTextTestRunnerRRtrun(RtrunnerR((Rs//usr/lib/python2.7/unittest/test/test_result.pyttestFailFastSetByRunner#s(RRRRRR R#R%R1R4R8RtskipIfR(tflagstoptimizeR9R:RARHRM(((s//usr/lib/python2.7/unittest/test/test_result.pyR s      ' 0    taddSkiptaddExpectedFailureRGt__init__cCs1g|_g|_d|_t|_t|_dS(Ni(R R R R R tbuffer(RRIt descriptionst verbosity((s//usr/lib/python2.7/unittest/test/test_result.pyRS/s     t OldResulttTest_OldTestResultcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsOtjdtfƒ4tƒ}|j|ƒ|jt|jƒ|ƒWdQXdS(NsTestResult has no add.+ method,(Rtcheck_warningstRuntimeWarningRWRKRRR (RRR R((s//usr/lib/python2.7/unittest/test/test_result.pytassertOldResultWarning;s     cCsrdtjfd„ƒY}xRdtfdtfdtffD]/\}}||ƒ}|j|t| ƒƒq;WdS(NtTestcBs5eZd„Zejd„ƒZejd„ƒZRS(cSs|jdƒdS(Ntfoobar(tskipTest(R((s//usr/lib/python2.7/unittest/test/test_result.pyttestSkipDscSs t‚dS(N(R2(R((s//usr/lib/python2.7/unittest/test/test_result.pyttestExpectedFailFscSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyttestUnexpectedSuccessIs(RRR_RtexpectedFailureR`Ra(((s//usr/lib/python2.7/unittest/test/test_result.pyR\Cs R_R`Ra(RRRR R[tint(RR\t test_namet should_passR((s//usr/lib/python2.7/unittest/test/test_result.pyttestOldTestResultBs    cCs3dtjfd„ƒY}|j|dƒdƒdS(NR\cBseZd„Zd„ZRS(cSs|jdƒdS(Ns no reason(R^(R((s//usr/lib/python2.7/unittest/test/test_result.pytsetUpUscSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyttestFooWs(RRRgRh(((s//usr/lib/python2.7/unittest/test/test_result.pyR\Ts Rhi(RRR[(RR\((s//usr/lib/python2.7/unittest/test/test_result.pyttestOldTestTesultSetupSscCsBtjdƒdtjfd„ƒYƒ}|j|dƒdƒdS(Ns no reasonR\cBseZd„ZRS(cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyRh^s(RRRh(((s//usr/lib/python2.7/unittest/test/test_result.pyR\\sRhi(RtskipRR[(RR\((s//usr/lib/python2.7/unittest/test/test_result.pyttestOldTestResultClass[scCsKdtjfd„ƒY}tjdtdtƒƒ}|j|dƒƒdS(NR\cBseZd„ZRS(cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyRhds(RRRh(((s//usr/lib/python2.7/unittest/test/test_result.pyR\cst resultclassRIRh(RRRJRWRRK(RR\RL((s//usr/lib/python2.7/unittest/test/test_result.pyttestOldResultWithRunnerbs (RRR[RfRiRkRm(((s//usr/lib/python2.7/unittest/test/test_result.pyRX9s     t MockTracebackcBseZed„ƒZRS(cGsdgS(Ns A traceback((RC((s//usr/lib/python2.7/unittest/test/test_result.pytformat_exceptionns(RRt staticmethodRo(((s//usr/lib/python2.7/unittest/test/test_result.pyRnmscCsttj_dS(N(t tracebackRR(((s//usr/lib/python2.7/unittest/test/test_result.pytrestore_tracebackrstTestOutputBufferingcBsbeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( cCstj|_tj|_dS(N(R(tstdoutt _real_outtstderrt _real_err(R((s//usr/lib/python2.7/unittest/test/test_result.pyRgxs cCs|jt_|jt_dS(N(RuR(RtRwRv(R((s//usr/lib/python2.7/unittest/test/test_result.pyttearDown|s cCs‹|j}|j}tjƒ}|j|jƒ|j|tjƒ|j|tj ƒ|j |ƒ|j|tjƒ|j|tj ƒdS(N( RuRwRRR+RTtassertIsR(RtRvR(Rtreal_outtreal_errR((s//usr/lib/python2.7/unittest/test/test_result.pyttestBufferOutputOff€s    cCs|j}|j}tjƒ}|j|jƒt|_|j|tj ƒ|j|tj ƒ|j |ƒ|j |tj ƒ|j |tj ƒ|j tj tƒ|j tj tƒ|j tj tj ƒtj }tj }tƒ|_tƒ|_dGHtj dIJ|j|jƒdƒ|j|jƒdƒ|j|jjƒdƒ|j|jjƒdƒ|j|ƒ|j|ƒ|jtj |jƒ|jtj |jƒ|j|jjƒdƒ|j|jjƒdƒ|j|jƒdƒ|j|jƒdƒdS(NR&tbarsfoo sbar RB(RuRwRRR+RTRRyR(RtRvRt assertIsNotR,Rt_original_stdoutt_original_stderrRtgetvalueR$R(RRzR{Rt out_streamt err_stream((s//usr/lib/python2.7/unittest/test/test_result.pyt#testBufferOutputStartTestAddSuccesss>            cCs&tjƒ}t|_|j|ƒ|S(N(RRRRTR(RR((s//usr/lib/python2.7/unittest/test/test_result.pytgetStartedResult¿s   cCs­ttj_|jtƒxddtfddtfddtfddtfgD]U\}}}|jƒ}t j }t j }t ƒ|_ t ƒ|_t j dIJ|r¸t j dIJnt||ƒ}||d ƒ|j|ƒt||ƒ}|jt|ƒdƒ|d\} } tjd ƒ} d } |rCtjd ƒ} nd | | f} |j| |ƒ|j|j jƒ| ƒ|j|jjƒ| ƒ|j| | ƒqPWdS(NR R3R R*R&R}iis9 Stdout: foo RBs9 Stderr: bar sA traceback%s%s(NNN(RnRRRqt addCleanupRrRR R…R(RtRvRRR€tgetattrR6RRRttextwraptdedentRyRtassertMultiLineEqual(Rt message_attrtadd_attrt include_errorRt buffered_outt buffered_errt addFunctiont result_listRtmessagetexpectedOutMessagetexpectedErrMessagetexpectedFullMessage((s//usr/lib/python2.7/unittest/test/test_result.pyt!testBufferOutputAddErrorOrFailureÅs@               cCsmtjƒ}t|_dtjfd„ƒY}tj|dƒgƒ}||ƒ|jt|jƒdƒdS(NRcBs eZed„ƒZd„ZRS(cSs dddS(Nii((tcls((s//usr/lib/python2.7/unittest/test/test_result.pyt setUpClassøscSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyttest_fooûs(RRt classmethodR˜R™(((s//usr/lib/python2.7/unittest/test/test_result.pyR÷sR™i( RRRRTRt TestSuiteRRR (RRRtsuite((s//usr/lib/python2.7/unittest/test/test_result.pyttestBufferSetupClassós    cCsmtjƒ}t|_dtjfd„ƒY}tj|dƒgƒ}||ƒ|jt|jƒdƒdS(NRcBs eZed„ƒZd„ZRS(cSs dddS(Nii((R—((s//usr/lib/python2.7/unittest/test/test_result.pyt tearDownClassscSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyR™ s(RRRšRžR™(((s//usr/lib/python2.7/unittest/test/test_result.pyRsR™i( RRRRTRR›RRR (RRRRœ((s//usr/lib/python2.7/unittest/test/test_result.pyttestBufferTearDownClasss    cCs¯tjƒ}t|_dtjfd„ƒY}dtfd„ƒY}d|_|tjd<|j tjj dƒtj |dƒgƒ}||ƒ|j t |jƒdƒdS(NRcBseZd„ZRS(cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyR™s(RRR™(((s//usr/lib/python2.7/unittest/test/test_result.pyRstModulecBseZed„ƒZRS(cSs dddS(Nii((((s//usr/lib/python2.7/unittest/test/test_result.pyt setUpModules(RRRpR¡(((s//usr/lib/python2.7/unittest/test/test_result.pyR sR™i(RRRRTRR>RR(tmodulesR†tpopR›RRR (RRRR Rœ((s//usr/lib/python2.7/unittest/test/test_result.pyttestBufferSetUpModules     cCs¯tjƒ}t|_dtjfd„ƒY}dtfd„ƒY}d|_|tjd<|j tjj dƒtj |dƒgƒ}||ƒ|j t |jƒdƒdS(NRcBseZd„ZRS(cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_result.pyR™'s(RRR™(((s//usr/lib/python2.7/unittest/test/test_result.pyR&sR cBseZed„ƒZRS(cSs dddS(Nii((((s//usr/lib/python2.7/unittest/test/test_result.pyttearDownModule*s(RRRpR¥(((s//usr/lib/python2.7/unittest/test/test_result.pyR )sR™i(RRRRTRR>RR(R¢R†R£R›RRR (RRRR Rœ((s//usr/lib/python2.7/unittest/test/test_result.pyttestBufferTearDownModule"s     ( RRRgRxR|R„R…R–RRŸR¤R¦(((s//usr/lib/python2.7/unittest/test/test_result.pyRsvs    0  .   t__main__(R(RˆRRRRqRRRtdictRt__dict__t classDicttmR6RSttypeR>RWRXRnRrRsRtmain(((s//usr/lib/python2.7/unittest/test/test_result.pyts(    ÿ!    4 À