ó û^‚Rc@sddlZddlmZddlZddlmZmZdejfd„ƒYZdejfd„ƒYZ e d kr‰ej ƒndS( iÿÿÿÿN(tStringIOi(t LoggingResultt#ResultWithNoStartTestRunStopTestRunt TestCleanUpcBs,eZd„Zd„Zd„Zd„ZRS(c sdtjfd„ƒY}|dƒ}|j|jgƒg‰‡fd†}‡fd†}|j|dddd d d d ƒ|j|ƒ|j|j|d td d d d ƒf|difgƒ|jƒ}|j|ƒ|jˆddifddtd d d d ƒfgƒdS(Nt TestableTestcBseZd„ZRS(cSsdS(N((tself((s//usr/lib/python2.7/unittest/test/test_runner.pyt testNothing s(t__name__t __module__R(((s//usr/lib/python2.7/unittest/test/test_runner.pyR sRcsˆjd||fƒdS(Ni(tappend(targstkwargs(tcleanups(s//usr/lib/python2.7/unittest/test/test_runner.pytcleanup1scsˆjd||fƒdS(Ni(R (R R (R (s//usr/lib/python2.7/unittest/test/test_runner.pytcleanup2siiitfourthellotfivetgoodbye(iii(((iii(tunittesttTestCaset assertEqualt _cleanupst addCleanuptdictt doCleanupst assertTrue(RRttestR Rtresult((R s//usr/lib/python2.7/unittest/test/test_runner.pyt testCleanUp s "    cs+dtjfd„ƒY}dtfd„ƒY}|ƒ}|dƒ}||_tdƒ‰tdƒ‰‡fd†}‡fd †}|j|ƒ|j|ƒ|j|jƒƒt|j ƒ\\}\}} } \} \} } } |j ||| f|tˆfƒ|j | | | f|tˆfƒdS( NRcBseZd„ZRS(cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_runner.pyR*s(RRR(((s//usr/lib/python2.7/unittest/test/test_runner.pyR)st MockResultcBseZgZd„ZRS(cSs|jj||fƒdS(N(terrorsR (RRtexc_info((s//usr/lib/python2.7/unittest/test/test_runner.pytaddError/s(RRRR!(((s//usr/lib/python2.7/unittest/test/test_runner.pyR-sRtfootbarcs ˆ‚dS(N(((texc1(s//usr/lib/python2.7/unittest/test/test_runner.pyR 8scs ˆ‚dS(N(((texc2(s//usr/lib/python2.7/unittest/test/test_runner.pyR;s( RRtobjectt_resultForDoCleanupst ExceptionRt assertFalseRtreversedRR(RRRRRR Rttest1tType1t instance1t_ttest2tType2t instance2((R$R%s//usr/lib/python2.7/unittest/test/test_runner.pyttestCleanUpWithErrors(s       3"cst‰g‰dtjf‡‡fd†ƒY}|dƒ‰‡fd†}‡fd†}ˆj|ƒˆj|ƒ‡‡‡fd†}tjƒ}||_ˆj|ƒˆjˆddd d d d gƒt‰g‰|dƒ‰ˆj|ƒˆj|ƒˆjˆdd gƒdS( NRcs8eZ‡‡fd†Z‡fd†Z‡fd†ZRS(cs&ˆjdƒˆr"tdƒ‚ndS(NtsetUpR"(R R((R(tblowUptordering(s//usr/lib/python2.7/unittest/test/test_runner.pyR3Ls csˆjdƒdS(NR(R (R(R5(s//usr/lib/python2.7/unittest/test/test_runner.pyRQscsˆjdƒdS(NttearDown(R (R(R5(s//usr/lib/python2.7/unittest/test/test_runner.pyR6Ts(RRR3RR6((R4R5(s//usr/lib/python2.7/unittest/test/test_runner.pyRKsRcsˆjdƒdS(NR (R ((R5(s//usr/lib/python2.7/unittest/test/test_runner.pyR YscsˆjdƒdS(NR(R ((R5(s//usr/lib/python2.7/unittest/test/test_runner.pyR[scs!ˆj|ˆƒˆjdƒdS(Ntsuccess(RR (t some_test(R5RR(s//usr/lib/python2.7/unittest/test/test_runner.pyR7`sR3RR6RR R7( tFalseRRRt TestResultt addSuccesstrunRtTrue(RRR RR7R((R4R5RRs//usr/lib/python2.7/unittest/test/test_runner.pyttestCleanupInRunGs("         cs…g‰dtjf‡‡fd†ƒY}|dƒ‰‡‡‡fd†‰‡fd†‰ˆjƒ|jˆdddd d gƒdS( NRcs8eZ‡‡fd†Z‡fd†Z‡fd†ZRS(csˆjdƒ|jˆƒdS(NR3(R R(R(R R5(s//usr/lib/python2.7/unittest/test/test_runner.pyR3vs csˆjdƒdS(NR(R (R(R5(s//usr/lib/python2.7/unittest/test/test_runner.pyRzscsˆjdƒdS(NR6(R (R(R5(s//usr/lib/python2.7/unittest/test/test_runner.pyR6}s(RRR3RR6((R R5(s//usr/lib/python2.7/unittest/test/test_runner.pyRusRcsˆjdƒˆjˆƒdS(NR (R R((RR5R(s//usr/lib/python2.7/unittest/test/test_runner.pyR ‚s csˆjdƒdS(NR(R ((R5(s//usr/lib/python2.7/unittest/test/test_runner.pyR…sR3RR6R R(RRtdebugR(RR((R RR5Rs//usr/lib/python2.7/unittest/test/test_runner.pyt!testTestCaseDebugExecutesCleanupsrs"  (RRRR2R>R@(((s//usr/lib/python2.7/unittest/test/test_runner.pyR s   +tTest_TextTestRunnercBsVeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( sTests for TextTestRunner.cCsitjƒ}|j|jƒ|j|jƒ|j|jdƒ|j|jƒ|j|j tj ƒdS(Ni( RtTextTestRunnerR)tfailfasttbufferRt verbosityRt descriptionst resultclasstTextTestResult(Rtrunner((s//usr/lib/python2.7/unittest/test/test_runner.pyt test_inits  csOdtjf‡fd†ƒY‰dtjˆfd„ƒY}|dddƒdS(NtAResultcseZ‡fd†ZRS(cs tˆ|ƒj|||ƒdS(N(tsupert__init__(RtstreamRFRE(RK(s//usr/lib/python2.7/unittest/test/test_runner.pyRMšs(RRRM((RK(s//usr/lib/python2.7/unittest/test/test_runner.pyRK™st ATextResultcBseZRS((RR(((s//usr/lib/python2.7/unittest/test/test_runner.pyROs(RR:RHtNone(RRO((RKs//usr/lib/python2.7/unittest/test/test_runner.pyttest_multiple_inheritance˜scsdtjfd„ƒY}tjƒ‰tjdtƒdtdtƒ}‡fd†|_|j|dƒƒ|jˆj ƒ|jˆj ƒdS(NtTestcBseZd„ZRS(cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_runner.pyttestFoo§s(RRRS(((s//usr/lib/python2.7/unittest/test/test_runner.pyRR¦sRNRCRDcsˆS(N(((R(s//usr/lib/python2.7/unittest/test/test_runner.pyt­sRS( RRR:RBRR=t _makeResultR<RRCRD(RRRRI((Rs//usr/lib/python2.7/unittest/test/test_runner.pyttestBufferAndFailfast¥s  csÅdtjfd„ƒY}tjj‰‡fd†}ˆj|ƒtjƒ‰tjdtƒƒ}‡fd†|_dˆ_ ‡‡fd†}|tj_|j tj ƒƒˆj ˆj dƒdS( NRRcBseZd„ZRS(cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_runner.pyRSµs(RRRS(((s//usr/lib/python2.7/unittest/test/test_runner.pyRR´scsˆtj_dS(N(RRItregisterResult((toriginalRegisterResult(s//usr/lib/python2.7/unittest/test/test_runner.pytcleanup¸sRNcsˆS(N(((R(s//usr/lib/python2.7/unittest/test/test_runner.pyRT¿sics#ˆjd7_ˆj|ˆƒdS(Ni(t wasRegisteredR(t thisResult(RR(s//usr/lib/python2.7/unittest/test/test_runner.pytfakeRegisterResultÂsi( RRRIRWRR:RBRRURZR<t TestSuiteR(RRRRYRIR\((RXRRs//usr/lib/python2.7/unittest/test/test_runner.pyttestRunnerRegistersResult³s     csXdtfd„ƒY‰dtjf‡‡fd†ƒY‰ˆƒ}|jtjƒƒdS(Nt OldTextResultcBseZdZd„ZRS(tcSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_runner.pyt printErrorsÍs(RRt separator2Ra(((s//usr/lib/python2.7/unittest/test/test_runner.pyR_ËstRunnercs&eZ‡fd†Z‡fd†ZRS(cstˆ|ƒjtƒƒdS(N(RLRMR(R(Rc(s//usr/lib/python2.7/unittest/test/test_runner.pyRMÑscsˆƒS(N((R(R_(s//usr/lib/python2.7/unittest/test/test_runner.pyRUÔs(RRRMRU((R_Rc(s//usr/lib/python2.7/unittest/test/test_runner.pyRcÐs(RRRBR<R](RRI((R_Rcs//usr/lib/python2.7/unittest/test/test_runner.pyt7test_works_with_result_without_startTestRun_stopTestRunÊs" cs}dtfd„ƒY‰dtjf‡‡fd†ƒY‰g}ˆ|ƒ}|jtjƒƒddg}|j||ƒdS(NtLoggingTextResultcBseZdZd„ZRS(R`cSsdS(N((R((s//usr/lib/python2.7/unittest/test/test_runner.pyRaÝs(RRRbRa(((s//usr/lib/python2.7/unittest/test/test_runner.pyReÛst LoggingRunnercs&eZ‡fd†Z‡fd†ZRS(cs&tˆ|ƒjtƒƒ||_dS(N(RLRMRt_events(Rtevents(Rf(s//usr/lib/python2.7/unittest/test/test_runner.pyRMáscs ˆ|jƒS(N(Rg(R(Re(s//usr/lib/python2.7/unittest/test/test_runner.pyRUås(RRRMRU((RfRe(s//usr/lib/python2.7/unittest/test/test_runner.pyRfàst startTestRunt stopTestRun(RRRBR<R]R(RRhRItexpected((RfRes//usr/lib/python2.7/unittest/test/test_runner.pyt$test_startTestRun_stopTestRun_calledÚs"  cCsddlm}|dƒ}tj|ƒ}x^ttjdƒD]I}tj|d|ƒ}tj|ƒ}|j|j j ƒ|j ƒƒq?WdS(Niÿÿÿÿ(RR"itprotocol( RRRBtrangetpickletHIGHEST_PROTOCOLtdumpstloadsRRNtgetvalue(Rt PickleableIORNRIRmtstobj((s//usr/lib/python2.7/unittest/test/test_runner.pyttest_pickle_unpickleîs cCs~d„}tƒ}tƒ}tƒ}tj|||d|ƒ}|j|j|ƒ|j||f}|j|jƒ|ƒdS(NcWs|S(N((R ((s//usr/lib/python2.7/unittest/test/test_runner.pytMockResultClassüsRG(R&RRBRRGRNRU(RRxtSTREAMt DESCRIPTIONSt VERBOSITYRItexpectedresult((s//usr/lib/python2.7/unittest/test/test_runner.pyttest_resultclassûs     ( RRt__doc__RJRQRVR^RdRlRwR}(((s//usr/lib/python2.7/unittest/test/test_runner.pyRAŒs     t__main__( Rt cStringIORRotsupportRRRRRARtmain(((s//usr/lib/python2.7/unittest/test/test_runner.pyts  ƒ}