usr/lib64/python2.7/unittest/test/test_result.pyc000064400000051627147205024430016011 0ustar00 |fc@s>ddlZddlZddlmZddlmZddlZddlZdejfdYZe ej j Z x!dddd fD] Z e e =qWeeed Zee d R(RR<R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestStackFrameTrimmings  cCstj}d|_t|_|jdd|j|jtj}d|_t|_|j dd|j|jtj}d|_t|_|j d|j|jdS(NcWsdS(Nt((t_((s1/usr/lib64/python2.7/unittest/test/test_result.pytRCcWsdS(NRC((RD((s1/usr/lib64/python2.7/unittest/test/test_result.pyRERCcWsdS(NRC((RD((s1/usr/lib64/python2.7/unittest/test/test_result.pyRERC( RRt_exc_info_to_stringRtfailfastR4R7RR R*taddUnexpectedSuccess(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyt testFailFasts          cs;tjdtdt}fd}|j|dS(NtstreamRGcsj|jdS(N(RRG(R(R(s1/usr/lib64/python2.7/unittest/test/test_result.pyR%s(RtTextTestRunnerRRtrun(RtrunnerR((Rs1/usr/lib64/python2.7/unittest/test/test_result.pyttestFailFastSetByRunner#s(RRRRRR R#R%R2R5R9RtskipIfR(tflagstoptimizeR:R;RBRIRN(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR s      ' 0    taddSkiptaddExpectedFailureRHt__init__cCs1g|_g|_d|_t|_t|_dS(Ni(R R R R R tbuffer(RRJt descriptionst verbosity((s1/usr/lib64/python2.7/unittest/test/test_result.pyRT/s     t OldResulttTest_OldTestResultcBs5eZdZdZdZdZdZRS(cCsOtjdtf4t}|j||jt|j|WdQXdS(NsTestResult has no add.+ method,(Rtcheck_warningstRuntimeWarningRXRLRRR (RRR R((s1/usr/lib64/python2.7/unittest/test/test_result.pytassertOldResultWarning;s     cCsrdtjfdY}xRdtfdtfdtffD]/\}}||}|j|t| q;WdS(NtTestcBs5eZdZejdZejdZRS(cSs|jddS(Ntfoobar(tskipTest(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestSkipDscSs tdS(N(R3(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestExpectedFailFscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestUnexpectedSuccessIs(RRR`RtexpectedFailureRaRb(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]Cs R`RaRb(RRRR R\tint(RR]t test_namet should_passR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldTestResultBs    cCs3dtjfdY}|j|dddS(NR]cBseZdZdZRS(cSs|jddS(Ns no reason(R_(R((s1/usr/lib64/python2.7/unittest/test/test_result.pytsetUpUscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestFooWs(RRRhRi(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]Ts Rii(RRR\(RR]((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldTestTesultSetupSscCsBtjddtjfdY}|j|dddS(Ns no reasonR]cBseZdZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRi^s(RRRi(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]\sRii(RtskipRR\(RR]((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldTestResultClass[scCsKdtjfdY}tjdtdt}|j|ddS(NR]cBseZdZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRids(RRRi(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]cst resultclassRJRi(RRRKRXRRL(RR]RM((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldResultWithRunnerbs (RRR\RgRjRlRn(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRY9s     t MockTracebackcBseZedZRS(cGsdgS(Ns A traceback((RD((s1/usr/lib64/python2.7/unittest/test/test_result.pytformat_exceptionns(RRt staticmethodRp(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRomscCsttj_dS(N(t tracebackRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pytrestore_tracebackrstTestOutputBufferingcBsbeZdZdZdZdZdZdZdZdZ dZ d Z RS( cCstj|_tj|_dS(N(R(tstdoutt _real_outtstderrt _real_err(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRhxs cCs|jt_|jt_dS(N(RvR(RuRxRw(R((s1/usr/lib64/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( RvRxRRR+RUR,R(RuRwR(Rtreal_outtreal_errR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferOutputOffs    cCs|j}|j}tj}|j|jt|_|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|jd|j|jd|j|jjd|j|jjd|j||j||jtj |j|jtj |j|j|jjd|j|jjd|j|jd|j|jddS(NR&tbarsfoo sbar RC(RvRxRRR+RURR,R(RuRwRt assertIsNotR-Rt_original_stdoutt_original_stderrRtgetvalueR$R(RRzR{Rt out_streamt err_stream((s1/usr/lib64/python2.7/unittest/test/test_result.pyt#testBufferOutputStartTestAddSuccesss>            cCs&tj}t|_|j||S(N(RRRRUR(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pytgetStartedResults   cCsttj_|jtxddtfddtfddtfddtfgD]U\}}}|j}t j }t j }t |_ t |_t j dIJ|rt j dIJnt||}||d |j|t||}|jt|d|d\} } tjd } d } |rCtjd } nd | | f} |j| ||j|j j| |j|jj| |j| | qPWdS(NR R4R R*R&R}iis9 Stdout: foo RCs9 Stderr: bar sA traceback%s%s(NNN(RoRRRrt addCleanupRsRR RR(RuRwRRRtgetattrR7RRRttextwraptdedentR,RtassertMultiLineEqual(Rt message_attrtadd_attrt include_errorRt buffered_outt buffered_errt addFunctiont result_listRtmessagetexpectedOutMessagetexpectedErrMessagetexpectedFullMessage((s1/usr/lib64/python2.7/unittest/test/test_result.pyt!testBufferOutputAddErrorOrFailures@               cCsmtj}t|_dtjfdY}tj|dg}|||jt|jddS(NRcBs eZedZdZRS(cSs dddS(Nii((tcls((s1/usr/lib64/python2.7/unittest/test/test_result.pyt setUpClassscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttest_foos(RRt classmethodRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRsRi( RRRRURt TestSuiteRRR (RRRtsuite((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferSetupClasss    cCsmtj}t|_dtjfdY}tj|dg}|||jt|jddS(NRcBs eZedZdZRS(cSs dddS(Nii((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyt tearDownClassscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyR s(RRRRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRsRi( RRRRURRRRR (RRRR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferTearDownClasss    cCstj}t|_dtjfdY}dtfdY}d|_|tjd<|j tjj dtj |dg}|||j t |jddS(NRcBseZdZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRs(RRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRstModulecBseZedZRS(cSs dddS(Nii((((s1/usr/lib64/python2.7/unittest/test/test_result.pyt setUpModules(RRRqR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRsRi(RRRRURR?RR(tmodulesRtpopRRRR (RRRRR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferSetUpModules     cCstj}t|_dtjfdY}dtfdY}d|_|tjd<|j tjj dtj |dg}|||j t |jddS(NRcBseZdZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyR's(RRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR&sRcBseZedZRS(cSs dddS(Nii((((s1/usr/lib64/python2.7/unittest/test/test_result.pyttearDownModule*s(RRRqR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR)sRi(RRRRURR?RR(RRRRRRR (RRRRR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferTearDownModule"s     ( RRRhRyR|RRRRRRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRtvs    0  .   t__main__(R(RRRRRrRRRtdictRt__dict__t classDicttmR7RTttypeR?RXRYRoRsRtRtmain(((s1/usr/lib64/python2.7/unittest/test/test_result.pyts(    !    4