rfc@sRddlZddlmZdejfdYZedkrNejndS(iNi(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_nothings(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.pyR1FsRcBseZRS((RR(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRJsR.((RRRR/R#RRR(RR1RRRR)((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 R1cseZfdZRS(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.pyR1UsRcBseZRS((RR(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRYsR.( RRtobjectRR/R#RRR(RR1RRRR)((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(RRRtexpectedFailureR6(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRdsR6R 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.pyR6ss(RRRR7R6(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRrsR6R 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 R@RAR RBRRR.((R(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRs R.R ( RRR/R#RRRR<R@RA(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((RERF((REs3/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.((RG(s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRsR.R (RRR/R#RRR(RRRRR)((RGs3/usr/lib64/python2.7/unittest/test/test_skipping.pyttest_decorated_skips    ( RRRR+R0R2R4R:R?RCRH(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyRs       t__main__(RtsupportRRRRtmain(((s3/usr/lib64/python2.7/unittest/test/test_skipping.pyts