usr/lib64/python2.7/unittest/test/test_runner.pyc000064400000033455147205024470016007 0ustar00 |fc@sddlZddlmZddlZddlmZmZdejfdYZdejfdYZ e dkrej ndS( iN(tStringIO(t LoggingResultt#ResultWithNoStartTestRunStopTestRunt TestCleanUpcBs,eZdZdZdZdZRS(c sdtjfdY}|d}|j|jggfd}fd}|j|dddd d d d |j||j|j|d td d d d f|difg|j}|j||jddifddtd d d d fgdS(Nt TestableTestcBseZdZRS(cSsdS(N((tself((s1/usr/lib64/python2.7/unittest/test/test_runner.pyt testNothings(t__name__t __module__R(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyR sRcsjd||fdS(Ni(tappend(targstkwargs(tcleanups(s1/usr/lib64/python2.7/unittest/test/test_runner.pytcleanup1scsjd||fdS(Ni(R (R R (R (s1/usr/lib64/python2.7/unittest/test/test_runner.pytcleanup2siiitfourthellotfivetgoodbye(iii(((iii(tunittesttTestCaset assertEqualt _cleanupst addCleanuptdictt doCleanupst assertTrue(RRttestR Rtresult((R s1/usr/lib64/python2.7/unittest/test/test_runner.pyt testCleanUp s "    cs+dtjfdY}dtfdY}|}|d}||_tdtdfd}fd }|j||j||j|jt|j \\}\}} } \} \} } } |j ||| f|tf|j | | | f|tfdS( NRcBseZdZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_runner.pyR+s(RRR(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyR*st MockResultcBseZgZdZRS(cSs|jj||fdS(N(terrorsR (RRtexc_info((s1/usr/lib64/python2.7/unittest/test/test_runner.pytaddError0s(RRRR!(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyR.sRtfootbarcs dS(N(((texc1(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR 9scs dS(N(((texc2(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR<s( RRtobjectt_resultForDoCleanupst ExceptionRt assertFalseRtreversedRR(RRRRRR Rttest1tType1t instance1t_ttest2tType2t instance2((R$R%s1/usr/lib64/python2.7/unittest/test/test_runner.pyttestCleanUpWithErrors)s       3"cstgdtjffdY}|dfd}fd}j|j|fd}tj}||_j|jddd d d d gtg|dj|j|jdd gdS( NRcs8eZfdZfdZfdZRS(cs&jdr"tdndS(NtsetUpR"(R R((R(tblowUptordering(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR3Ms csjddS(NR(R (R(R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRRscsjddS(NttearDown(R (R(R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR6Us(RRR3RR6((R4R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRLsRcsjddS(NR (R ((R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR ZscsjddS(NR(R ((R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR\scs!j|jddS(Ntsuccess(RR (t some_test(R5RR(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR7asR3RR6RR R7( tFalseRRRt TestResultt addSuccesstrunRtTrue(RRR RR7R((R4R5RRs1/usr/lib64/python2.7/unittest/test/test_runner.pyttestCleanupInRunHs("         csgdtjffdY}|dfdfdj|jdddd d gdS( NRcs8eZfdZfdZfdZRS(csjd|jdS(NR3(R R(R(R R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR3ws csjddS(NR(R (R(R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR{scsjddS(NR6(R (R(R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR6~s(RRR3RR6((R R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRvsRcsjdjdS(NR (R R((RR5R(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR s csjddS(NR(R ((R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRsR3RR6R R(RRtdebugR(RR((R RR5Rs1/usr/lib64/python2.7/unittest/test/test_runner.pyt!testTestCaseDebugExecutesCleanupsss"  (RRRR2R>R@(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyR s   +tTest_TextTestRunnercBsVeZdZdZdZdZdZdZdZdZ dZ RS( sTests for TextTestRunner.cCsitj}|j|j|j|j|j|jd|j|j|j|j tj dS(Ni( RtTextTestRunnerR)tfailfasttbufferRt verbosityRt descriptionst resultclasstTextTestResult(Rtrunner((s1/usr/lib64/python2.7/unittest/test/test_runner.pyt test_inits  csOdtjffdYdtjfdY}|ddddS(NtAResultcseZfdZRS(cs t|j|||dS(N(tsupert__init__(RtstreamRFRE(RK(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRMs(RRRM((RK(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRKst ATextResultcBseZRS((RR(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyROsi(RR:RHtNone(RRO((RKs1/usr/lib64/python2.7/unittest/test/test_runner.pyttest_multiple_inheritancescsdtjfdY}tjtjdtdtdt}fd|_|j|d|jj |jj dS(NtTestcBseZdZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_runner.pyttestFoos(RRRS(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyRRsRNRCRDcsS(N(((R(s1/usr/lib64/python2.7/unittest/test/test_runner.pyttRS( RRR:RBRR=t _makeResultR<RRCRD(RRRRI((Rs1/usr/lib64/python2.7/unittest/test/test_runner.pyttestBufferAndFailfasts  csdtjfdY}tjjfd}j|tjtjdt}fd|_d_ fd}|tj_|j tj j j ddS( NRRcBseZdZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_runner.pyRSs(RRRS(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyRRscstj_dS(N(RRItregisterResult((toriginalRegisterResult(s1/usr/lib64/python2.7/unittest/test/test_runner.pytcleanupsRNcsS(N(((R(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRTRUics#jd7_j|dS(Ni(t wasRegisteredR(t thisResult(RR(s1/usr/lib64/python2.7/unittest/test/test_runner.pytfakeRegisterResultsi( RRRIRXRR:RBRRVR[R<t TestSuiteR(RRRRZRIR]((RYRRs1/usr/lib64/python2.7/unittest/test/test_runner.pyttestRunnerRegistersResults     csXdtfdYdtjffdY}|jtjdS(Nt OldTextResultcBseZdZdZRS(RUcSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_runner.pyt printErrorss(RRt separator2Ra(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyR`stRunnercs&eZfdZfdZRS(cst|jtdS(N(RLRMR(R(Rc(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRMscsS(N((R(R`(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRVs(RRRMRV((R`Rc(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRcs(RRRBR<R^(RRI((R`Rcs1/usr/lib64/python2.7/unittest/test/test_runner.pyt7test_works_with_result_without_startTestRun_stopTestRuns" cs}dtfdYdtjffdYg}|}|jtjddg}|j||dS(NtLoggingTextResultcBseZdZdZRS(RUcSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_runner.pyRas(RRRbRa(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyRest LoggingRunnercs&eZfdZfdZRS(cs&t|jt||_dS(N(RLRMRt_events(Rtevents(Rf(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRMscs |jS(N(Rg(R(Re(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRVs(RRRMRV((RfRe(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRfst startTestRunt stopTestRun(RRRBR<R^R(RRhRItexpected((RfRes1/usr/lib64/python2.7/unittest/test/test_runner.pyt$test_startTestRun_stopTestRun_calleds"  cCsddlm}|d}tj|}x^ttjdD]I}tj|d|}tj|}|j|j j |j q?WdS(Ni(RR"itprotocol( RRRBtrangetpickletHIGHEST_PROTOCOLtdumpstloadsRRNtgetvalue(Rt PickleableIORNRIRmtstobj((s1/usr/lib64/python2.7/unittest/test/test_runner.pyttest_pickle_unpickles cCs~d}t}t}t}tj|||d|}|j|j||j||f}|j|j|dS(NcWs|S(N((R ((s1/usr/lib64/python2.7/unittest/test/test_runner.pytMockResultClasssRG(R&RRBRRGRNRV(RRxtSTREAMt DESCRIPTIONSt VERBOSITYRItexpectedresult((s1/usr/lib64/python2.7/unittest/test/test_runner.pyttest_resultclasss     ( RRt__doc__RJRQRWR_RdRlRwR}(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyRAs     t__main__( Rt cStringIORRotunittest.test.supportRRRRRARtmain(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyts  }