rfc@sddlZddlmZddlZddlmZmZdejfdYZdejfdYZ e d krej ndS( iN(tStringIOi(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 testNothing s(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.pytaddError/s(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 8scs 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.pyR3Ls csjddS(NR(R (R(R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRQscsjddS(NttearDown(R (R(R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR6Ts(RRR3RR6((R4R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRKsRcsjddS(NR (R ((R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR YscsjddS(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.pyR7`sR3RR6RR R7( tFalseRRRt TestResultt addSuccesstrunRtTrue(RRR RR7R((R4R5RRs1/usr/lib64/python2.7/unittest/test/test_runner.pyttestCleanupInRunGs("         csgdtjffdY}|dfdfdj|jdddd d gdS( NRcs8eZfdZfdZfdZRS(csjd|jdS(NR3(R R(R(R R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyR3vs csjddS(NR(R (R(R5(s1/usr/lib64/python2.7/unittest/test/test_runner.pyRzscsjddS(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.pyRusRcsjdjdS(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!testTestCaseDebugExecutesCleanupsrs"  (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.pyROs(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.pytsRS( 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.pyRTsics#jd7_j|dS(Ni(t wasRegisteredR(t thisResult(RR(s1/usr/lib64/python2.7/unittest/test/test_runner.pytfakeRegisterResultsi( RRRIRWRR:RBRRURZR<t TestSuiteR(RRRRYRIR\((RXRRs1/usr/lib64/python2.7/unittest/test/test_runner.pyttestRunnerRegistersResults     csXdtfdYdtjffdY}|jtjdS(Nt OldTextResultcBseZdZdZRS(tcSsdS(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.pyRUs(RRRMRU((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(R`cSsdS(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.pyRUs(RRRMRU((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&RRBRRGRNRU(RRxtSTREAMt DESCRIPTIONSt VERBOSITYRItexpectedresult((s1/usr/lib64/python2.7/unittest/test/test_runner.pyttest_resultclasss     ( RRt__doc__RJRQRVR^RdRlRwR}(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyRAs     t__main__( Rt cStringIORRotsupportRRRRRARtmain(((s1/usr/lib64/python2.7/unittest/test/test_runner.pyts  }