^Rc@sddlZddlZddlZddlZddlZddlmZddlmZddl Z ddl m Z m Z m Z mZdefdYZde je e fd YZed kre jndS( iN(tdeepcopy(t test_supporti(t TestEqualityt TestHashingt LoggingResultt#ResultWithNoStartTestRunStopTestRuntTestcBsVeZdZdejfdYZdefdYZdejfdYZRS(s5Keep these TestCase classes out of the main namespacetFoocBseZdZdZRS(cCsdS(N((tself((s-/usr/lib/python2.7/unittest/test/test_case.pytrunTestscCsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyttest1s(t__name__t __module__R R (((s-/usr/lib/python2.7/unittest/test/test_case.pyRs tBarcBseZdZRS(cCsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyttest2s(R R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyR stLoggingTestCasecBs2eZdZdZdZdZdZRS(s!A test case which logs its calls.cCs&ttj|jd||_dS(Nttest(tsuperRRt__init__tevents(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyRscCs|jjddS(NtsetUp(Rtappend(R((s-/usr/lib/python2.7/unittest/test/test_case.pyR"scCs|jjddS(NR(RR(R((s-/usr/lib/python2.7/unittest/test/test_case.pyR%scCs|jjddS(NttearDown(RR(R((s-/usr/lib/python2.7/unittest/test/test_case.pyR(s(R R t__doc__RRRR(((s-/usr/lib/python2.7/unittest/test/test_case.pyRs    (R R RtunittesttTestCaseRR R(((s-/usr/lib/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;ZBRS(<R R RcCs:dtjfdY}|j|jdddS(NRcBseZdZdZRS(cSs tdS(N(t TypeError(R((s-/usr/lib/python2.7/unittest/test/test_case.pyR HscSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyRIs(R R R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyRGs is .Test.runTest(RRt assertEqualtid(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyttest_init__no_test_nameFscCs=dtjfdY}|j|djdddS(NRcBseZdZdZRS(cSs tdS(N(R(R((s-/usr/lib/python2.7/unittest/test/test_case.pyR SscSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyRTs(R R R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyRRs Ris .Test.test(RRRR(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyttest_init__test_name__validQscCsLdtjfdY}y|dWntk r:nX|jddS(NRcBseZdZdZRS(cSs tdS(N(R(R((s-/usr/lib/python2.7/unittest/test/test_case.pyR ^scSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyR_s(R R R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyR]s ttestfoosFailed to raise ValueError(RRt ValueErrortfail(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyttest_init__test_name__invalid\s  cCs9dtjfdY}|j|djddS(NRcBseZdZRS(cSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyRls(R R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyRksRi(RRRtcountTestCases(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyttest_countTestCasesjscCsEdtjfdY}|j}|jt|tjdS(NRcBseZdZRS(cSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyR vs(R R R (((s-/usr/lib/python2.7/unittest/test/test_case.pyRus(RRtdefaultTestResultRttypet TestResult(RRtresult((s-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyRs(R R R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRst startTestRtaddErrortstopTest(RRRtrunR(RRR)texpected((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyR&scs#t|jtddS(Nsraised by Foo.setUp(RRR+(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs(R R R&R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs t startTestRunR,RR-R.t stopTestRun(RRR/R(RRR0((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyRs(R R R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRsR,RRR-RR.(RRRR/R(RRR)R0((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyR&scs#t|jtddS(Nsraised by Foo.test(RRR+(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs(R R R&R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs R2R,RRR-RR.R3(RRR/R(RRR0((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyRs(R R R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRsR,RRt addFailureRR.(RRRR/R(RRR)R0((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyR&scs$t|j|jddS(Nsraised by Foo.test(RRR"(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs(R R R&R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs R2R,RRR7RR.R3(RRR/R(RR0R((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyRs(R R R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRsR,RRRR-R.(RRRR/R(RRR)R0((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyR&scs#t|jtddS(Nsraised by Foo.tearDown(RRR+(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs(R R R&R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRs R2R,RRRR-R.R3(RRR/R(RRR0((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyR&scSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyRs(R R R&R(((s-/usr/lib/python2.7/unittest/test/test_case.pyRs R(RRR/(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyt"test_run_call_order_default_resultscCs9dtjfdY}|j|djtkdS(NRcBseZdZRS(cSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyR%s(R R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyR$sR(RRt assertTruetfailureExceptiontAssertionError(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyttest_failureException__default#scCs}g}t|}dtjfdY}|j|djtk|dj|dddg}|j||dS(NRcBseZdZeZRS(cSs tdS(N(R+(R((s-/usr/lib/python2.7/unittest/test/test_case.pyR5s(R R RR+R>(((s-/usr/lib/python2.7/unittest/test/test_case.pyR4s RR,R7R.(RRRR=R>R+R/R(RRR)RR0((s-/usr/lib/python2.7/unittest/test/test_case.pyt2test_failureException__subclassing__explicit_raise0s cCs}g}t|}dtjfdY}|j|djtk|dj|dddg}|j||dS(NRcBseZdZeZRS(cSs|jddS(Ntfoo(R"(R((s-/usr/lib/python2.7/unittest/test/test_case.pyRLs(R R RR+R>(((s-/usr/lib/python2.7/unittest/test/test_case.pyRKs RR,R7R.(RRRR=R>R+R/R(RRR)RR0((s-/usr/lib/python2.7/unittest/test/test_case.pyt2test_failureException__subclassing__implicit_raiseGs cCs*dtjfdY}|jdS(NRcBseZdZRS(cSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyR [s(R R R (((s-/usr/lib/python2.7/unittest/test/test_case.pyRZs(RRR(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyt test_setUpYscCs*dtjfdY}|jdS(NRcBseZdZRS(cSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyR ds(R R R (((s-/usr/lib/python2.7/unittest/test/test_case.pyRcs(RRR(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyt test_tearDownbscCs6dtjfdY}|j|jtdS(NRcBseZdZRS(cSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyR rs(R R R (((s-/usr/lib/python2.7/unittest/test/test_case.pyRqs(RRtassertIsInstanceRt basestring(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyttest_idpscsagdtjffdY}|djddddddg}|j|dS( NRcs&eZfdZfdZRS(csjddS(NR(R(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyRscs tS(N(R(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyR&s(R R RR&((R(s-/usr/lib/python2.7/unittest/test/test_case.pyR~sRR2R,t addSuccessR.R3(RRR/R(RRR0((Rs-/usr/lib/python2.7/unittest/test/test_case.pyt test_run__uses_defaultTestResult{s   cCs|j|jdS(N(t assertIsNonetshortDescription(R((s-/usr/lib/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(RRL(R((s-/usr/lib/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(RRL(R((s-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyRPscs$t|t|ko!kSS(N(R'(tatbtmsg(RP(s-/usr/lib/python2.7/unittest/test/test_case.pytAllSnakesCreatedEquals(tobjecttassertNotEqualtNonetaddTypeEqualityFuncR(Rts1ts2RT((RPs-/usr/lib/python2.7/unittest/test/test_case.pyttestAddTypeEqualityFuncs cCs<t}|j|||j|j|j|tdS(N(RUtassertIst assertRaisesR>(Rtthing((s-/usr/lib/python2.7/unittest/test/test_case.pyt testAssertIss cCs<t}|j|t|j|j|j||dS(N(RUt assertIsNotR]R>(RR^((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertIsNots cCs6g}|j|t|j|j|j|tdS(N(RFtlistR]R>tdict(RR^((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertIsInstancescCs6g}|j|t|j|j|j|tdS(N(tassertNotIsInstanceRcR]R>Rb(RR^((s-/usr/lib/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(NtbananatmonkeytgrasstcowtfishtsealRQtabciiitditottertxitelephanttc(tassertInt assertNotInR]R>(Rtanimals((s-/usr/lib/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( NiRQiRRtoneRrtcss|]}t|VqdS(N(tchr(t.0ti((s-/usr/lib/python2.7/unittest/test/test_case.pys siRBu�(tassertDictContainsSubsetR]R>Rtcheck_warningstUnicodeWarningtjointrange(RRw((s-/usr/lib/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) failedRSRBs$assertEqual(%r, %r) with msg= faileds/assertEqual(%r, %r) with third parameter failediiiii((((tsett frozensetRR>R"R](Rt equal_pairsRQRRt unequal_pairs((s-/usr/lib/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( NiRQiRpsThese are unequal(((( tassertListEqualtassertTupleEqualtassertSequenceEqualR]RRR>ttupletextendRWtassertDictEqualtupdate(RRQRRRrRn((s-/usr/lib/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 |k|j||t |d|_y|j ||Wn#|j k rZ}|jd }nX|jd |jt |t |k|j||d|_y|j ||Wn#|j k r}|jd }nX|jd |jt |t |k|j||dS(NiPiRQRpiRRs iis!assertSequenceEqual did not fail.iii(RtmaxDiffRtdifflibtndifftpprinttpformatt splitlinesRtcaset DIFF_OMITTEDtlenRR>targsR"R=RsRtRW(Rtseq1tseq2tdifftomittedteRS((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertSequenceEqualMaxDiffRs<    cCsd|_|jdd}tjjtd}|j|d|d|_|jdd}|j|dd|_|jdd}|j|ddS(NiRBtbartfoobari(Rt_truncateMessageRRRRRRW(RtmessageR((s-/usr/lib/python2.7/unittest/test/test_case.pyttestTruncateMessageys   cCs|tjd}d}||_y|jiidd6Wn,|jk rj}|jt|dnX|jddS(NRcSsdS(NRB((RSR((s-/usr/lib/python2.7/unittest/test/test_case.pyttruncatesiiRBsassertDictEqual did not fail(RRRRR>RtstrR"(RRRR((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertDictEqualTruncatess  cCsutjd}d}||_y|jddWn,|jk rc}|jt|dnX|jddS(NRcSsdS(NRB((RSR((s-/usr/lib/python2.7/unittest/test/test_case.pyRsRBRs!assertMultiLineEqual did not fail(RRRtassertMultiLineEqualR>RRR"(RRRR((s-/usr/lib/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/lib/python2.7/unittest/test/test_case.pytsuxiRQRRt^i cSstddS(Nsthis should not be raised(t SystemError(RR((s-/usr/lib/python2.7/unittest/test/test_case.pytexplodingTruncationscstdS(NR(R((t old_truncateR(s-/usr/lib/python2.7/unittest/test/test_case.pyRss%r != %riiii( RRRWRt addCleanupR]R>RsRt exceptionRRt(RtstcmRRYRZ((RRRs-/usr/lib/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(NiiiRBRtbazt2RQidi i iiRpy@y@RRitaaabccdtabbbcceRnR(iiRQ(iiRR(iiRn(iiR(iiRQ(iiRR(iiRn(iiR(RUtassertItemsEqualtTrueR]R>tFalsetitertdivmodRRRWRtutilt_count_diff_all_purposeRt_count_diff_hashable(RRQRRtdiffsR0((s-/usr/lib/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( NRQRRRBiiiiii(ii(ii(ii(RtassertSetEqualR]R>RWR(Rtset1tset2((s-/usr/lib/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(t assertGreatertassertGreaterEqualt assertLesstassertLessEqualR]R>(R((s-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyRscSs |jdS(Ntutf8(tdecode(Rp((s-/usr/lib/python2.7/unittest/test/test_case.pyRsRs i(RWRRR>RtencodetsplitR=(Rt sample_texttrevised_sample_texttsample_text_errort type_changerRterror((s-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyttestAsertEqualSingleLinescCsP|jd|j|j|jt|jd|j|j|jddS(NsDjZoPloGears on Rails(RKRWR]R>RtassertIsNotNone(R((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertIsNones  cCs0|jdd|j|j|jdddS(Nt asdfabasdfsab+tsaaastaaaa(tassertRegexpMatchesR]R>(R((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertRegexpMatchesscskdtfdYfd}|jtjd||jd||jd|dS(Nt ExceptionMockcBseZRS((R R (((s-/usr/lib/python2.7/unittest/test/test_case.pyRscsddS(Ns We expect(((R(s-/usr/lib/python2.7/unittest/test/test_case.pytStubssexpect$uexpect$(t ExceptiontassertRaisesRegexptretcompile(RR((Rs-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertRaisesRegexps cCs||j|jd|jttjdd|j|jd|jtdd|j|jd|jtdddS(Ns^Exception not raised$RpcSsdS(N(RW(((s-/usr/lib/python2.7/unittest/test/test_case.pyRscSsdS(N(RW(((s-/usr/lib/python2.7/unittest/test/test_case.pyRsuxcSsdS(N(RW(((s-/usr/lib/python2.7/unittest/test/test_case.pyRs(RR>RRR(R((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertNotRaisesRegexps       cCs|d}|j|jd|jtd||j|jd|jtd||j|jd|jttjd|dS(NcSstddS(Nt Unexpected(R(((s-/usr/lib/python2.7/unittest/test/test_case.pyRss*"\^Expected\$" does not match "Unexpected"s ^Expected$u ^Expected$(RR>RRR(RR((s-/usr/lib/python2.7/unittest/test/test_case.pyttestAssertRaisesRegexpMismatchs     csdtfdYfd}d}|j}|||WdQX|j}|j||j|jd|dS(NRcBseZRS((R R (((s-/usr/lib/python2.7/unittest/test/test_case.pyRscs|dS(N((RB(R(s-/usr/lib/python2.7/unittest/test/test_case.pyRssparticular valuei(RR]RRFRR(RRtvtctxR((Rs-/usr/lib/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/lib/python2.7/unittest/test/test_case.pyttestSynonymAssertMethodNamess 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/lib/python2.7/unittest/test/test_case.pyRsN( RR}t failIfEqualtfailUnlessEqualtfailUnlessAlmostEqualtfailIfAlmostEqualt failUnlessRtfailUnlessRaisesRtfailIfR(R((s-/usr/lib/python2.7/unittest/test/test_case.pyt!testPendingDeprecationMethodNamess  cCs3dtjfdY}|d}t|dS(Nt TestableTestcBseZdZRS(cSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyt testNothings(R R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyRsR(RRR(RRR((s-/usr/lib/python2.7/unittest/test/test_case.pyt testDeepcopys csddddtjffdY}dtjffdY}dtjffdY}d tjffd Y}x@||||fD],}|jt|d jWdQXqWdS( NcSs tdS(N(tKeyboardInterrupt(R((s-/usr/lib/python2.7/unittest/test/test_case.pyt_raise!scSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pytnothing#stTest1cseZZRS((R R ttest_something((R(s-/usr/lib/python2.7/unittest/test/test_case.pyR&stTest2cseZZZRS((R R RR((RR(s-/usr/lib/python2.7/unittest/test/test_case.pyR)stTest3cseZZZRS((R R RR((RR(s-/usr/lib/python2.7/unittest/test/test_case.pyR-stTest4cseZfdZRS(cs|jdS(N(R(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyR2s(R R R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyR1sR(RWRRR]RR/(RRRRRtklass((RRs-/usr/lib/python2.7/unittest/test/test_case.pyttestKeyboardInterrupt s  ""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/lib/python2.7/unittest/test/test_case.pyR:scSsdS(N((R((s-/usr/lib/python2.7/unittest/test/test_case.pyR<sRcseZZRS((R R R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyR?sRcseZZZRS((R R RR((RR(s-/usr/lib/python2.7/unittest/test/test_case.pyRBsRcseZZZRS((R R RR((RR(s-/usr/lib/python2.7/unittest/test/test_case.pyRFsRcseZfdZRS(cs|jdS(N(R(R(R(s-/usr/lib/python2.7/unittest/test/test_case.pyRKs(R R R((R(s-/usr/lib/python2.7/unittest/test/test_case.pyRJsRi( RWRRR(R/RRterrorsttestsRun(RRRRRRR)((RRs-/usr/lib/python2.7/unittest/test/test_case.pyttestSystemExit9s  "" cCsetjd}xOttjdD]:}tj|d|}tj|}|j||q#WdS(NR/itprotocol(RRRtpickletHIGHEST_PROTOCOLtdumpstloadsR(RRRt pickled_testtunpickled_test((s-/usr/lib/python2.7/unittest/test/test_case.pyt testPickleTs (CR R RRteq_pairsR tne_pairsRRR#R%R*R1R4R5R6R8R9R:R;R<R@RARCRDRERHRJRMRtskipIftsystflagstoptimizeRNROR[R_RaRdRfRvRRRRRRRRRRRRRRRRRRRRRRR R R(((s-/usr/lib/python2.7/unittest/test/test_case.pyR,sz!!                       % 4 '  $ > ( V $          t__main__(RRRRRtcopyRRRRtsupportRRRRRURRRR tmain(((s-/usr/lib/python2.7/unittest/test/test_case.pyts      ";