usr/lib64/python2.7/unittest/test/test_setups.pyc000064400000070765147205005520016021 0ustar00 |fc@sgddlZddlmZddlZdZdejfdYZedkrcejndS(iN(tStringIOcGs tjS(N(tunittestt TestResult(t_((s1/usr/lib64/python2.7/unittest/test/test_setups.pyt resultFactoryst TestSetupscBseZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZRS(cCstjdtdtS(Nt resultclasststream(RtTextTestRunnerRR(tself((s1/usr/lib64/python2.7/unittest/test/test_setups.pyt getRunnerscGstj}x-|D]%}tjj|}|j|qW|j}tj}|j||jtj|jtj|j|S(N(Rt TestSuitetdefaultTestLoadertloadTestsFromTestCasetaddTestsR taddTesttrun(R tcasestsuitetcasetteststrunnert realSuite((s1/usr/lib64/python2.7/unittest/test/test_setups.pytrunTestss     csqdtjffdY|j}|jjd|j|jd|jt|jddS(NtTestcs5eZdZefdZdZdZRS(ics jd7_tjjdS(Ni(t setUpCalledRtTestCaset setUpClass(tcls(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR$scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_one(scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_two*s(t__name__t __module__Rt classmethodRRR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR"s iii(RRRt assertEqualRttestsRuntlenterrors(R tresult((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_setup_class!s  csqdtjffdY|j}|jjd|j|jd|jt|jddS(NRcs5eZdZefdZdZdZRS(ics jd7_tjjdS(Ni(ttearDownCalledRRt tearDownClass(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)6scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR:scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR<s(RR R(R!R)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR4s iii(RRRR"R(R#R$R%(R R&((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_teardown_class3s  csdtjffdYdtjffdY|j}|jjd|jjd|j|jd|jt|jddS(NRcs5eZdZefdZdZdZRS(ics jd7_tjjdS(Ni(R(RRR)(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)HscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRLscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRNs(RR R(R!R)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRFs tTest2cs5eZdZefdZdZdZRS(ics jd7_tjjdS(Ni(R(RRR)(R(R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)SscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRWscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRYs(RR R(R!R)RR((R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+Qs iii(RRRR"R(R#R$R%(R R&((RR+s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_teardown_class_two_classesEs  cCsdtjfdY}|j|}|j|jd|jt|jd|jd\}}|jt|dtdS(Nt BrokenTestcBs)eZedZdZdZRS(cSstddS(Ntfoo(t TypeError(R((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRescSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRhscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRjs(RR R!RRR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR-ds iissetUpClass (%s.BrokenTest)( RRRR"R#R$R%tstrR(R R-R&terrorR((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_setupclasscs csdtjffdYdtjffdY|j}|j|jd|jt|jd|jjd|jjd|jd\}}|jt|d t dS( NRcs5eZdZefdZdZdZRS(icsjd7_tddS(NiR.(ttornDownR/(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)xscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR|scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR~s(RR R3R!R)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRvs R+cs5eZdZefdZdZdZRS(icsjd7_tddS(NiR.(R3R/(R(R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RR R3R!R)RR((R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+s iiiistearDownClass (%s.Test)( RRRR"R#R$R%R3R0R(R R&R1R((RR+s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_teardown_classus  cs@dtjffdY|j|jjdS(NRcs;eZeZedZefdZdZRS(cSs tdS(N(R/(R((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscst_tddS(NR.(tTrueR3R/(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)s cSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RR tFalseR3R!RR)R((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RRRt assertFalseR3(R ((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyt(test_class_not_torndown_when_setup_failss csedtjffdYtjd|j|jj|jjdS(NRcsGeZeZeZefdZefdZdZRS(cs t_dS(N(R5t classSetUp(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscs t_dS(N(R5R3(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs( RR R6R9R3R!RR)R((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs thop(RRtskipRR7R9R3(R ((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyt-test_class_not_setup_or_torndown_when_skippeds   cs gdtffdY}dtffdY}dtjffdY}dtjffdY}d tjffd Y}d |_|_d|_|tjd <|tjd((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyttearDownModules(RR t staticmethodR@RA((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR=stModule2cs2eZefdZefdZRS(csjddS(NsModule2.setUpModule(R>((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@scsjddS(NsModule2.tearDownModule(R>((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRAs(RR RBR@RA((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRCstTest1csPeZefdZefdZfdZfdZRS(csjddS(Nssetup 1(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscsjddS(Ns teardown 1(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)scsjddS(Ns Test1.testOne(R>(R (R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyttestOnescsjddS(Ns Test1.testTwo(R>(R (R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyttestTwos(RR R!RR)RERF((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRDsR+csPeZefdZefdZfdZfdZRS(csjddS(Nssetup 2(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscsjddS(Ns teardown 2(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)scsjddS(Ns Test2.testOne(R>(R (R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyREscsjddS(Ns Test2.testTwo(R>(R (R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRFs(RR R!RR)RERF((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+stTest3csPeZefdZefdZfdZfdZRS(csjddS(Nssetup 3(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscsjddS(Ns teardown 3(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)scsjddS(Ns Test3.testOne(R>(R (R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyREscsjddS(Ns Test3.testTwo(R>(R (R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRFs(RR R!RR)RERF((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRGstModuleRERFiisModule1.setUpModulessetup 1s Test1.testOnes Test1.testTwos teardown 1ssetup 2s Test2.testOnes Test2.testTwos teardown 2sModule1.tearDownModulesModule2.setUpModulessetup 3s Test3.testOnes Test3.testTwos teardown 3sModule2.tearDownModule( tobjectRRR tsystmodulesR R RR"R#R$R%(R R=RCRDR+RGtfirsttsecondtthirdtfourthtfifthtsixthRRR&((R?s1/usr/lib64/python2.7/unittest/test/test_setups.pyt1test_setup_teardown_order_with_pathological_suites:      !    csdtffdYdtjfdY}d|_tjd<|j|}|jjd|j|j d|jt |j ddS(NRHcs#eZdZefdZRS(icsjd7_dS(Ni(t moduleSetup((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@ s(RR RSRBR@((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRH sRcBseZdZdZRS(cSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs iii( RIRRR RJRKRR"RSR#R$R%(R RR&((RHs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_setup_module s  cs$dtffdYdtjffdYdtjfdY}d_d|_tjd<|j|}|jjd|jj d|j|j d|j j |j j |jt|jd|jd\}}|jt|d dS( NRHcs>eZdZdZefdZefdZRS(icsjd7_tddS(NiR.(RSR/((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@"scsjd7_dS(Ni(tmoduleTornDown((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRA&s(RR RSRURBR@RA((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHsRcsPeZeZeZefdZefdZdZdZ RS(cs t_dS(N(R5R9(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR-scs t_dS(N(R5t classTornDown(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)0scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR3scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR5s( RR R6R9RVR!RR)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR*s  R+cBseZdZdZRS(cSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR9scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR;s(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+8s iissetUpModule (Module)(RIRRR RJRKRR"RSRUR#R7R9RVR$R%R0(R R+R&R1R((RHRs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_setup_modules    cCs[dtjfdY}d|_tjjdd|j|}|j|j ddS(NRcBseZdZdZRS(cSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRMscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyROs(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRLs RHi( RRR RJRKtpoptNoneRR"R#(R RR&((s1/usr/lib64/python2.7/unittest/test/test_setups.pyt!test_testcase_with_missing_moduleKs  csdtffdYdtjfdY}d|_tjd<|j|}|jjd|j|j d|jt |j ddS(NRHcs#eZdZefdZRS(icsjd7_dS(Ni(RU((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRAZs(RR RURBRA((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHXsRcBseZdZdZRS(cSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR_scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRas(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR^s iii( RIRRR RJRKRR"RUR#R$R%(R RR&((RHs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_teardown_moduleWs  csdtffdYdtjffdYdtjfdY}d_d|_tjd<|j|}|jjd|j|j d|j j |j j |jt |jd|jd \}}|jt|d dS( NRHcs#eZdZefdZRS(icsjd7_tddS(NiR.(RUR/((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRAns(RR RURBRA((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHlsRcsPeZeZeZefdZefdZdZdZ RS(cs t_dS(N(R5R9(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRvscs t_dS(N(R5RV(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)yscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR|scSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR~s( RR R6R9RVR!RR)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRss  R+cBseZdZdZRS(cSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+s iiistearDownModule (Module)(RIRRR RJRKRR"RUR#t assertTrueR9RVR$R%R0(R R+R&R1R((RHRs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_teardown_moduleks   cCsdtjfdY}|j|}|j|jd|jt|jd|jt|jd|jdd}|jt|dt dS(NRcBs)eZedZdZdZRS(cSstjddS(NR.(RtSkipTest(R((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RR R!RRR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs iissetUpClass (%s.Test)( RRRR"R#R$R%tskippedR0R(R RR&R_((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_skiptest_in_setupclasss cCsdtjfdY}dtfdY}d|_|tjd<|j|}|j|jd|jt |j d|jt |j d|j dd}|jt |ddS(NRcBseZdZdZRS(cSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscSsdS(N((R ((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs RHcBseZedZRS(cSstjddS(NR.(RR^(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@s(RR RBR@(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHsiissetUpModule (Module)( RRRIR RJRKRR"R#R$R%R_R0(R RRHR&R_((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_skiptest_in_setupmodules  csgdtffdY}dtjffdY}d|_|tjd((tordering(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@scsjddS(NRA(R>((Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRAs(RR RBR@RA((Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHsRcsAeZefdZefdZfdZRS(csjddS(NR(R>(R(Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscsjddS(NR)(R>(R(Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)scsjddS(Nttest_something(R>(R (Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRcs(RR R!RR)Rc((Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRsR@RRcR)RA( RIRRR RJRKR R tdebugR"(R RHRRt expectedOrder((Rbs1/usr/lib64/python2.7/unittest/test/test_setups.pyt.test_suite_debug_executes_setups_and_teardownss   csdtffdY}dtjffdY}d|_|tjds