usr/lib64/python2.7/unittest/test/test_skipping.pyc000064400000022601147205016450016310 0ustar00 |fc@sRddlZddlmZdejfdYZedkrNejndS(iN(t LoggingResulttTest_TestSkippingcBsYeZdZdZdZdZdZdZdZdZ dZ RS( cCs dtjfdY}g}t|}|d}|j||j|dddg|j|j|dfgdtjfdY}g}t|}|d }|j||j|dddg|j|j|d fg|j|jd dS( NtFoocBseZdZRS(cSs|jddS(Ntskip(tskipTest(tself((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyt test_skip_me s(t__name__t __module__R(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR sRt startTesttaddSkiptstopTestRcBseZdZdZRS(cSs|jddS(Nttesting(R(R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pytsetUpscSsdS(N((R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyt test_nothingt(RRR R(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRs RR i(tunittesttTestCaseRtrunt assertEqualtskippedttestsRun(RRteventstresultttest((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyt test_skippings      c s6tjttftjttff}x |D]\dtjffdY}|d}|d}tj||g}g}t|}|j||j t |j dddddd dg}|j |||j |j d |j |j |d fg|j |jq+WdS( NRcs8eZddZddZRS(R cSsdS(N((R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyt test_skip%scSsdS(N((R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_dont_skip(s(RRRR((tdecotdo_skipt dont_skip(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR$sRRiR R R t addSuccessiR (Rt skipUnlesstFalsetTruetskipIfRt TestSuiteRRRtlenRRt assertTruet wasSuccessful( Rtop_tableRt test_do_skipRtsuiteRRtexpected((RRRs3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_skipping_decorators s"%     cstjddtjffdY}gtj}|d}tj|g}|j||j|j|dfg|jgdS(NR RcseZfdZRS(csjddS(Ni(tappend(R(trecord(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_1;s(RRR/((R.(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR9sR/(RRRt TestResultR$RRR(RRRRR*((R.s3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_skip_class8s   cstjdddfdY}d|tjfdY}gtj}|d}tj|g}|j||j|j|dfg|jgdS(NR tMixincseZfdZRS(csjddS(Ni(R-(R(R.(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR/Hs(RRR/((R.(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR2FsRcBseZRS((RR(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRJsR/((RRRR0R$RRR(RR2RRRR*((R.s3/usr/lib64/python2.7/unittest/test/test_skipping.pyt&test_skip_non_unittest_class_old_styleEs(   cstjddtffdY}d|tjfdY}gtj}|d}tj|g}|j||j|j|dfg|jgdS(NR R2cseZfdZRS(csjddS(Ni(R-(R(R.(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR/Ws(RRR/((R.(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR2UsRcBseZRS((RR(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRYsR/( RRtobjectRR0R$RRR(RR2RRRR*((R.s3/usr/lib64/python2.7/unittest/test/test_skipping.pyt&test_skip_non_unittest_class_new_styleTs   cCsdtjfdY}g}t|}|d}|j||j|dddg|j|jdd||j|jdS(NRcBseZejdZRS(cSs|jddS(Nshelp me!(tfail(R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_diees(RRRtexpectedFailureR7(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRdsR7R taddExpectedFailureR i(RRRRRtexpectedFailuresR&R'(RRRRR((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_expected_failurecs    cCsdtjfdY}g}t|}|d}|j||j|dddg|j|j|j|j|g|j|j dS(NRcBseZejdZRS(cSsdS(N((R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR7ss(RRRR8R7(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRrsR7R taddUnexpectedSuccessR ( RRRRRt assertFalsetfailurestunexpectedSuccessesR&R'(RRRRR((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_unexpected_successqs    csdtjffdYtj}d}tj|g}|j||j|j|dfg|jj|jj dS(NRcsJeZeZeZfdZfdZejddZ RS(cs t_dS(N(R"twasSetUp(R(R(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR scs t_dS(N(R"t wasTornDown(R(R(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyttornDownsR cSsdS(N((R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR/s( RRR!RARBR RCRRR/((R(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRs R/R ( RRR0R$RRRR=RARB(RRRR*((Rs3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_skip_doesnt_run_setups   csddtjffdY}tj}|d}tj|g}|j||j|j|dfgdS(Ncsfd}|S(Ncs |S(N((ta(tfunc(s3/usr/lib64/python2.7/unittest/test/test_skipping.pytinners((RFRG((RFs3/usr/lib64/python2.7/unittest/test/test_skipping.pyt decoratorsRcs&eZejddZRS(R cSsdS(N((R((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyR/s(RRRRR/((RH(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRsR/R (RRR0R$RRR(RRRRR*((RHs3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_decorated_skips    ( RRRR,R1R3R5R;R@RDRI(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRs       t__main__(Rtunittest.test.supportRRRRtmain(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyts