{fc@sddlZddlZddlZddlZddlZddlmZddlmZddl Z ddl m Z m Z m Z mZdefdYZde je e fdYZed kre jndS( iN(tdeepcopy(t test_support(t TestEqualityt TestHashingt LoggingResultt#ResultWithNoStartTestRunStopTestRuntTestcBsVeZdZdejfdYZdefdYZdejfdYZRS(s5Keep these TestCase classes out of the main namespacetFoocBseZdZdZRS(cCsdS(N((tself((s//usr/lib64/python2.7/unittest/test/test_case.pytrunTesttcCsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyttest1R (t__name__t __module__R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRs tBarcBseZdZRS(cCsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyttest2R (R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRstLoggingTestCasecBs2eZdZdZdZdZdZRS(s!A test case which logs its calls.cCs&ttj|jd||_dS(Nttest(tsuperRRt__init__tevents(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyRscCs|jjddS(NtsetUp(Rtappend(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR"scCs|jjddS(NR(RR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR%scCs|jjddS(NttearDown(RR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR(s(R R t__doc__RRRR(((s//usr/lib64/python2.7/unittest/test/test_case.pyRs    (R R RtunittesttTestCaseRRR(((s//usr/lib64/python2.7/unittest/test/test_case.pyRst Test_TestCasecBseZejdejdfgZejdejdfejdejdfejdejdfgZdZdZdZ dZ dZ dZ d Z d Zd Zd Zd ZdZdZdZdZdZdZdZdZdZdZdZejej j!dkddZ"ejej j!dkddZ#dZ$dZ%dZ&d Z'd!Z(d"Z)d#Z*d$Z+d%Z,d&Z-d'Z.d(Z/d)Z0d*Z1d+Z2d,Z3d-Z4d.Z5d/Z6d0Z7d1Z8d2Z9d3Z:d4Z;d5Z<d6Z=d7Z>d8Z?d9Z@d:ZAd;ZBd<ZCd=ZDd>ZERS(?R R RcCs:dtjfdY}|j|jdddS(NRcBseZdZdZRS(cSs tdS(N(t TypeError(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR HR cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyRIR (R R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRGs is .Test.runTest(RRt assertEqualtid(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyttest_init__no_test_nameFscCs=dtjfdY}|j|djdddS(NRcBseZdZdZRS(cSs tdS(N(R(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR SR cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyRTR (R R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRRs Ris .Test.test(RRRR(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyttest_init__test_name__validQscCsLdtjfdY}y|dWntk r:nX|jddS(NRcBseZdZdZRS(cSs tdS(N(R(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR ^R cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyR_R (R R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyR]s ttestfoosFailed to raise ValueError(RRt ValueErrortfail(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyttest_init__test_name__invalid\s  cCs9dtjfdY}|j|djddS(NRcBseZdZRS(cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyRlR (R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRksRi(RRRtcountTestCases(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyttest_countTestCasesjscCsEdtjfdY}|j}|jt|tjdS(NRcBseZdZRS(cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyR vs(R R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRus(RRtdefaultTestResultRttypet TestResult(RRtresult((s//usr/lib64/python2.7/unittest/test/test_case.pyttest_defaultTestResulttscsjg}t|}dtjffdY|j|ddddg}|j||dS(NRcseZfdZRS(cs#t|jtddS(Nsraised by Foo.setUp(RRt RuntimeError(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRst startTestRtaddErrortstopTest(RRRtrunR(RRR*texpected((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt#test_run_call_order__error_in_setUps  csag}dtjffdY|jddddddg}|j||dS( NRcs eZdZfdZRS(cSs t|jS(N(RR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR'scs#t|jtddS(Nsraised by Foo.setUp(RRR,(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R'R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs t startTestRunR-RR.R/t stopTestRun(RRR0R(RRR1((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt2test_run_call_order__error_in_setUp_default_results   cspg}t|}dtjffdYddddddg}|j||j||dS( NRcseZfdZRS(cs#t|jtddS(Nsraised by Foo.test(RRR,(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRsR-RRR.RR/(RRRR0R(RRR*R1((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt"test_run_call_order__error_in_tests  csgg}dtjffdYddddddd d g}|j|j||dS( NRcs eZdZfdZRS(cSs t|jS(N(RR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR'scs#t|jtddS(Nsraised by Foo.test(RRR,(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R'R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs R3R-RRR.RR/R4(RRR0R(RRR1((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt1test_run_call_order__error_in_test_default_results cspg}t|}dtjffdYddddddg}|j||j||dS( NRcseZfdZRS(cs$t|j|jddS(Nsraised by Foo.test(RRR#(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRsR-RRt addFailureRR/(RRRR0R(RRR*R1((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt$test_run_call_order__failure_in_tests  csgdtjffdYddddddd d g}g}|j|j||dS( NRcs eZdZfdZRS(cSs t|jS(N(RR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR'scs$t|j|jddS(Nsraised by Foo.test(RRR#(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R'R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs R3R-RRR8RR/R4(RRR0R(RR1R((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt3test_run_call_order__failure_in_test_default_results cspg}t|}dtjffdY|j|ddddddg}|j||dS( NRcseZfdZRS(cs#t|jtddS(Nsraised by Foo.tearDown(RRR,(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRsR-RRRR.R/(RRRR0R(RRR*R1((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt&test_run_call_order__error_in_tearDowns  csgdtjffdYg}|jddddddd d g}|j||dS( NRcs eZdZfdZRS(cSs t|jS(N(RR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR'scs#t|jtddS(Nsraised by Foo.tearDown(RRR,(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R'R((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRs R3R-RRRR.R/R4(RRR0R(RRR1((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt5test_run_call_order__error_in_tearDown_default_results cCs-dtjfdY}|djdS(NRcBseZdZdZRS(cSstS(N(R(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR'scSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyRs(R R R'R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRs R(RRR0(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyt"test_run_call_order_default_resultscCs6dtjfdY}|j|djtdS(NRcBseZdZRS(cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyR%s(R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyR$sR(RRtassertIstfailureExceptiontAssertionError(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyttest_failureException__default#scCszg}t|}dtjfdY}|j|djt|dj|dddg}|j||dS(NRcBseZdZeZRS(cSs tdS(N(R,(R((s//usr/lib64/python2.7/unittest/test/test_case.pyR5s(R R RR,R?(((s//usr/lib64/python2.7/unittest/test/test_case.pyR4s RR-R8R/(RRRR>R?R,R0R(RRR*RR1((s//usr/lib64/python2.7/unittest/test/test_case.pyt2test_failureException__subclassing__explicit_raise0s cCszg}t|}dtjfdY}|j|djt|dj|dddg}|j||dS(NRcBseZdZeZRS(cSs|jddS(Ntfoo(R#(R((s//usr/lib64/python2.7/unittest/test/test_case.pyRLs(R R RR,R?(((s//usr/lib64/python2.7/unittest/test/test_case.pyRKs RR-R8R/(RRRR>R?R,R0R(RRR*RR1((s//usr/lib64/python2.7/unittest/test/test_case.pyt2test_failureException__subclassing__implicit_raiseGs cCs*dtjfdY}|jdS(NRcBseZdZRS(cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyR [s(R R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRZs(RRR(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyt test_setUpYscCs*dtjfdY}|jdS(NRcBseZdZRS(cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyR ds(R R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRcs(RRR(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyt test_tearDownbscCs6dtjfdY}|j|jtdS(NRcBseZdZRS(cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyR rs(R R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRqs(RRtassertIsInstanceRt basestring(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyttest_idpscsagdtjffdY}|djddddddg}|j|dS( NRcs&eZfdZfdZRS(csjddS(NR(R(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRscs tS(N(R(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyR's(R R RR'((R(s//usr/lib64/python2.7/unittest/test/test_case.pyR~sRR3R-t addSuccessR/R4(RRR0R(RRR1((Rs//usr/lib64/python2.7/unittest/test/test_case.pyt test_run__uses_defaultTestResult{s   cCs|j|jdS(N(t assertIsNonetshortDescription(R((s//usr/lib64/python2.7/unittest/test/test_case.pyt$testShortDescriptionWithoutDocstringsis)Docstrings are omitted with -O2 and abovecCs|j|jddS(s7Tests shortDescription() for a method with a docstring.N(RRM(R((s//usr/lib64/python2.7/unittest/test/test_case.pyt(testShortDescriptionWithOneLineDocstrings cCs|j|jddS(sTests shortDescription() for a method with a longer docstring. This method ensures that only the first line of a docstring is returned used in the short description, no matter how long the whole thing is. s>Tests shortDescription() for a method with a longer docstring.N(RRM(R((s//usr/lib64/python2.7/unittest/test/test_case.pyt*testShortDescriptionWithMultiLineDocstrings  csodtfdY}}|j||dfd}|j||j||dS(NtSadSnakecBseZdZRS(s)Dummy class for test_addTypeEqualityFunc.(R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRQscs$t|t|ko!kSS(N(R((tatbtmsg(RQ(s//usr/lib64/python2.7/unittest/test/test_case.pytAllSnakesCreatedEquals(tobjecttassertNotEqualtNonetaddTypeEqualityFuncR(Rts1ts2RU((RQs//usr/lib64/python2.7/unittest/test/test_case.pyttestAddTypeEqualityFuncs cCs<t}|j|||j|j|j|tdS(N(RVR>t assertRaisesR?(Rtthing((s//usr/lib64/python2.7/unittest/test/test_case.pyt testAssertIss cCs<t}|j|t|j|j|j||dS(N(RVt assertIsNotR]R?(RR^((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertIsNots cCs6g}|j|t|j|j|j|tdS(N(RGtlistR]R?tdict(RR^((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertIsInstancescCs6g}|j|t|j|j|j|tdS(N(tassertNotIsInstanceRcR]R?Rb(RR^((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertNotIsInstancescCsKidd6dd6dd6}|jdd|jd d d d g|jd||jd d|jd d d d g|jd||j|j|jdd|j|j|jdd d d g|j|j|jd||j|j|jdd|j|j|jd d d d g|j|j|jd|dS(NtbananatmonkeytgrasstcowtfishtsealRRtabciiitditottertxitelephanttc(tassertInt assertNotInR]R?(Rtanimals((s//usr/lib64/python2.7/unittest/test/test_case.pyt testAssertIns%%cCs&|jii|jiidd6|jidd6idd6|jidd6idd6dd6|jidd6dd6idd6dd6|j|j|jidd6iWdQX|j|j#|jidd6idd6WdQX|j|j#|jidd6idd6WdQX|j|j*|jidd6dd6idd6WdQX|j|j*|jidd6dd6idd6WdQXtjdtf[djdtd D}|j|j#|ji|d 6id d 6WdQXWdQXdS( NiRRiRStoneRrR css|]}t|VqdS(N(tchr(t.0ti((s//usr/lib64/python2.7/unittest/test/test_case.pys siRCu�(tassertDictContainsSubsetR]R?Rtcheck_warningstUnicodeWarningtjointrange(RRw((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertDictContainsSubsets&%,$$++cCsd d fiifggfttfttfg}x|D]\}}y|j||Wn+|jk r|jd||fnXy|j||ddWn+|jk r|jd||fnXy|j||dWqF|jk r |jd||fqFXqFWd gfitftddgtddgftdd gtdd gftd dgtd dgfg}xq|D]i\}}|j|j|j|||j|j|j||d|j|j|j||ddqWdS(NsassertEqual(%r, %r) failedRTRCs$assertEqual(%r, %r) with msg= faileds/assertEqual(%r, %r) with third parameter failediiiii((((tsett frozensetRR?R#R](Rt equal_pairsRRRSt unequal_pairs((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertEquals<      !!'cCs|jgg|jdd|jgdddgg}g}|jtjj|j|||jtjj|jt|t||jtjj|j|t||j||j|||jt|t||j|t||jt|||j|j|j|t||j|j|jt|||j|j|jd||j|j|jdt||j|j|jdt||j|j|jdd|j|j|jdd|j|j|jdd|j iiidd6}i}|jtjj|j |||j ||j ||d|d<|jtjj|j ||d|j|j|j d||j|j|j g||j|j|j dddS( NiRRiRpsThese are unequal(((( tassertListEqualtassertTupleEqualtassertSequenceEqualR]RRR?ttupletextendRXtassertDictEqualtupdate(RRRRSRrRn((s//usr/lib64/python2.7/unittest/test/test_case.pyt testEqualitysT      cCs|j|jd ddd }ddd }djtjtj|jtj|j}tj j t |df}t |d|_y|j ||Wn#|j k r}|jd }nX|jd |jt |t ||j||t |d|_y|j ||Wn#|j k rW}|jd }nX|jd |jt |t ||j||d|_y|j ||Wn#|j k r}|jd }nX|jd |jt |t ||j||dS(NiPiRRRpiRSs iis!assertSequenceEqual did not fail.iii(RtmaxDiffR~tdifflibtndifftpprinttpformatt splitlinesRtcaset DIFF_OMITTEDtlenRR?targsR#t assertLessRst assertGreaterRtRX(Rtseq1tseq2tdifftomittedteRT((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertSequenceEqualMaxDiffRs<    cCsd|_|jdd}tjjtd}|j|d|d|_|jdd}|j|dd|_|jdd}|j|ddS(NiRCtbartfoobari(Rt_truncateMessageRRRRRRX(RtmessageR((s//usr/lib64/python2.7/unittest/test/test_case.pyttestTruncateMessageys   cCs|tjd}d}||_y|jiidd6Wn,|jk rj}|jt|dnX|jddS(NRcSsdS(NRC((RTR((s//usr/lib64/python2.7/unittest/test/test_case.pyttruncatesiiRCsassertDictEqual did not fail(RRRRR?RtstrR#(RRRR((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertDictEqualTruncatess  cCsutjd}d}||_y|jddWn,|jk rc}|jt|dnX|jddS(NRcSsdS(NRC((RTR((s//usr/lib64/python2.7/unittest/test/test_case.pyRsRCRs!assertMultiLineEqual did not fail(RRRtassertMultiLineEqualR?RRR#(RRRR((s//usr/lib64/python2.7/unittest/test/test_case.pyt!testAssertMultiLineEqualTruncatess  csjjdd_jd_jfddd}jj}j|d|dWdQXjd t|j j|d|ddd}d }j |_ jfd |d|d}}jj}j||WdQXj d t|j jt|j d ||fj|d|ddS(NiiicstdS(Nt_diffThreshold(tsetattr((t old_thresholdR(s//usr/lib64/python2.7/unittest/test/test_case.pytR uxiRRRSt^i cSstddS(Nsthis should not be raised(t SystemError(RR((s//usr/lib64/python2.7/unittest/test/test_case.pytexplodingTruncationscstdS(NR(R((t old_truncateR(s//usr/lib64/python2.7/unittest/test/test_case.pyRR s%r != %riiii( RRRXRt addCleanupR]R?RsRt exceptionRRt(RtstcmRRZR[((RRRs//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertEqual_diffThresholds*        #c Csyt}|jdddgdddg|jdddgdddg|j||dddg|dd|df|jddddgddtdg|j|j|jddgdgd dgd ddg|j|j|jddddgddtdg|j|j|jd gd d g|j|j|jd d gd g|j|j|jd d d gd d g|jddgdd gd gtdd gddgg|jtddgdd gtddgdd g|j|j|jgtddddtg|jidd6idd6gidd6idd6g|jddtggtgddg|j|j|jgtgddddt g|j|j|jdggdgg|j|j|jdddgddg|j|j|jdddddgddtdg|j|j|jdidd6dtgidd6tdgdd hddhg}|ddd}|j||t t j j dd}ddddh}|j||t j j ggg}|j|dd gfgt t j jdd}ddddh}|j||dS(NiiiRCRtbazt2RRidi i iiRpy@y@RSitaaabccdtabbbcceRnR(iiRR(iiRS(iiRn(iiR(iiRR(iiRS(iiRn(iiR(RVtassertItemsEqualtTrueR]R?tFalsetitertdivmodRRRXRtutilt_count_diff_all_purposeRt_count_diff_hashable(RRRRStdiffsR1((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertItemsEqualsV "".(,":8("%-cCs*t}t}|j|||j|j|jd||j|j|jg||j|j|j|d|j|j|j|gtdg}t}|j|j|j||tdg}tdg}|j||tdg}tddg}|j|j|j||tdg}tddg}|j|j|j||tddg}tddg}|j||t}d}|j|j|j|||j|j|j||td d g}td g}|j|j|j||dS( NRRRSRCiiiiii(ii(ii(ii(RtassertSetEqualR]R?RXR(Rtset1tset2((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertSetEquals:    cCs4|jdd|jdd|jdd|jdd|jdd|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|jdd|jdd|jdd|jdd|jdd|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|jdd|jdd|jdd|jdd|jdd|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|jdd|jdd|jdd|jdd|jdd|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|jdd|jdd|jdd|jdd|jdd|jdd|jdd|jdd|jdd|jdd|jdd|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdd|j|j|jdddS( Niig?g?tbugtantubuguant(RtassertGreaterEqualRtassertLessEqualR]R?(R((s//usr/lib64/python2.7/unittest/test/test_case.pyttestInequality)scCsd}d}d}d|_xddfD]w}y |j||||Wq.|jk r}t|jdjddd}|j||kq.Xq.WdS( Nsxhttp://www.python.org/doc/2.3/lib/module-unittest.html test case A test case is the smallest unit of testing. [...] shttp://www.python.org/doc/2.4.1/lib/module-unittest.html test case A test case is the smallest unit of testing. [...] You may provide your own implementation that does not subclass from TestCase, of course. s- http://www.python.org/doc/2.3/lib/module-unittest.html ? ^ + http://www.python.org/doc/2.4.1/lib/module-unittest.html ? ^^^ test case - A test case is the smallest unit of testing. [...] + A test case is the smallest unit of testing. [...] You may provide your ? +++++++++++++++++++++ + own implementation that does not subclass from TestCase, of course. cSs|S(N((Rp((s//usr/lib64/python2.7/unittest/test/test_case.pyRR cSs |jdS(Ntutf8(tdecode(Rp((s//usr/lib64/python2.7/unittest/test/test_case.pyRR Rs i(RXRRR?Rtencodetsplitt assertTrue(Rt sample_texttrevised_sample_texttsample_text_errort type_changerRterror((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertMultiLineEquals  %cCsrd}d}d}y|j||WnE|jk rm}t|jddd}|j||knXdS(Nuladen swallows fly slowlyuunladen swallows fly quicklysr- laden swallows fly slowly ? ^^^^ + unladen swallows fly quickly ? ++ ^^^^^ s i(RR?RRR(RRRRRR((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAsertEqualSingleLinescCsP|jd|j|j|jt|jd|j|j|jddS(NsDjZoPloGears on Rails(RLRXR]R?RtassertIsNotNone(R((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertIsNones  cCs0|jdd|j|j|jdddS(Nt asdfabasdfsab+tsaaastaaaa(tassertRegexpMatchesR]R?(R((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertRegexpMatchesscsdtfdYfd}|j||jtf||jttddd|j|j|jdWdQX|j|jt|WdQXdS(Nt ExceptionMockcBseZRS((R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRscsddS(Ns We expect(((R(s//usr/lib64/python2.7/unittest/test/test_case.pytStubst19tbaseicSsdS(Ni((((s//usr/lib64/python2.7/unittest/test/test_case.pyRR (t ExceptionR]R"tintR?(RR((Rs//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesCallablesc sdtfdYfd}|j |WdQX|jtf}|WdQX|j|j|j|jjdd|jttdddWdQX|j|j|jWdQXWdQX|j|jt|WdQXdS( NRcBseZRS((R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRscsddS(Ns We expect(((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRsis We expectRRi( RR]R"RGRRRRR?(RRR((Rs//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesContexts   cskdtfdYfd}|jtjd||jd||jd|dS(NRcBseZRS((R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRscsddS(Ns We expect(((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRssexpect$uexpect$(RtassertRaisesRegexptretcompile(RR((Rs//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesRegexps cCs||j|jd|jttjdd|j|jd|jtdd|j|jd|jtdddS(Ns^Exception not raised$RpcSsdS(N(RX(((s//usr/lib64/python2.7/unittest/test/test_case.pyRR cSsdS(N(RX(((s//usr/lib64/python2.7/unittest/test/test_case.pyRR uxcSsdS(N(RX(((s//usr/lib64/python2.7/unittest/test/test_case.pyRR (RR?RRR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertNotRaisesRegexps       cCs6dtfdY}|jt|j|ddS(NtMyExccBseZRS((R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRscSstS(N(R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRR (RR]RR(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyt#testAssertRaisesRegexpInvalidRegexpscCs|d}|j|jd|jtd||j|jd|jtd||j|jd|jttjd|dS(NcSstddS(Nt Unexpected(R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRss*"\^Expected\$" does not match "Unexpected"s ^Expected$u ^Expected$(RR?RRR(RR((s//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesRegexpMismatchs     csdtfdYfd}d}|j}|||WdQX|j}|j||j|jd|dS(NRcBseZRS((R R (((s//usr/lib64/python2.7/unittest/test/test_case.pyRscs|dS(N((RC(R(s//usr/lib64/python2.7/unittest/test/test_case.pyRssparticular valuei(RR]RRGRR(RRtvtctxR((Rs//usr/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesExcValues cCsQ|jdd|jdd|jdd|jdd|jtdS(sTest undocumented method name synonyms. Please do not use these methods names in your own code. This test confirms their continued existence and functionality in order to avoid breaking existing code. iig@g@g@N(tassertNotEqualst assertEqualstassertAlmostEqualstassertNotAlmostEqualstassert_R(R((s//usr/lib64/python2.7/unittest/test/test_case.pyttestSynonymAssertMethodNames(s cCstjr|jdd|jdd|jdd|jdd|jt|jt d|j t WdQXdS(sTest fail* methods pending deprecation, they will warn in 3.2. Do not use these methods. They will go away in 3.3. iig@g@g@cSsddS(NgQ @uspam((t_((s//usr/lib64/python2.7/unittest/test/test_case.pyRAR N( RR|t failIfEqualtfailUnlessEqualtfailUnlessAlmostEqualtfailIfAlmostEqualt failUnlessRtfailUnlessRaisesRtfailIfR(R((s//usr/lib64/python2.7/unittest/test/test_case.pyt!testPendingDeprecationMethodNames6s  cCs3dtjfdY}|d}t|dS(Nt TestableTestcBseZdZRS(cSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyt testNothingGs(R R R(((s//usr/lib64/python2.7/unittest/test/test_case.pyRFsR(RRR(RRR((s//usr/lib64/python2.7/unittest/test/test_case.pyt testDeepcopyDs csddddtjffdY}dtjffdY}dtjffdY}d tjffd Y}x@||||fD],}|jt|d jWdQXqWdS( NcSs tdS(N(tKeyboardInterrupt(R((s//usr/lib64/python2.7/unittest/test/test_case.pyt_raisePscSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pytnothingRstTest1cseZZRS((R R ttest_something((R(s//usr/lib64/python2.7/unittest/test/test_case.pyR UstTest2cseZZZRS((R R RR ((RR (s//usr/lib64/python2.7/unittest/test/test_case.pyR XstTest3cseZZZRS((R R R R((RR (s//usr/lib64/python2.7/unittest/test/test_case.pyR \stTest4cseZfdZRS(cs|jdS(N(R(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyR as(R R R ((R(s//usr/lib64/python2.7/unittest/test/test_case.pyR`sR (RXRRR]RR0(RR R R Rtklass((RR s//usr/lib64/python2.7/unittest/test/test_case.pyttestKeyboardInterruptOs  ""csddddtjffdY}dtjffdY}dtjffdY}d tjffd Y}xe||||fD]Q}tj}|d j||jt|jd |j|jd qWdS( NcSs tdS(N(t SystemExit(R((s//usr/lib64/python2.7/unittest/test/test_case.pyRiscSsdS(N((R((s//usr/lib64/python2.7/unittest/test/test_case.pyR ksR cseZZRS((R R R ((R(s//usr/lib64/python2.7/unittest/test/test_case.pyR nsR cseZZZRS((R R RR ((RR (s//usr/lib64/python2.7/unittest/test/test_case.pyR qsR cseZZZRS((R R R R((RR (s//usr/lib64/python2.7/unittest/test/test_case.pyR usRcseZfdZRS(cs|jdS(N(R(R(R(s//usr/lib64/python2.7/unittest/test/test_case.pyR zs(R R R ((R(s//usr/lib64/python2.7/unittest/test/test_case.pyRysR i( RXRRR)R0RRterrorsttestsRun(RR R R RRR*((RR s//usr/lib64/python2.7/unittest/test/test_case.pyttestSystemExiths  "" cCsetjd}xOttjdD]:}tj|d|}tj|}|j||q#WdS(NR0itprotocol(RRRtpickletHIGHEST_PROTOCOLtdumpstloadsR(RRRt pickled_testtunpickled_test((s//usr/lib64/python2.7/unittest/test/test_case.pyt testPickles (FR R RRteq_pairsRtne_pairsRR R$R&R+R2R5R6R7R9R:R;R<R=RARBRDRERFRIRKRNRtskipIftsystflagstoptimizeRORPR\R_RaRdRfRvRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s//usr/lib64/python2.7/unittest/test/test_case.pyR,s!!                       % 4 '  $ > ( V $             t__main__(RRRRR tcopyRRRRtunittest.test.supportRRRRRVRRRR tmain(((s//usr/lib64/python2.7/unittest/test/test_case.pyts      "j