ok

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/unittest/test/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyo

�
�[
bc@s�ddlZddlZddlZddlZddlZddlmZddlmZddl	Z	ddl
mZmZm
Z
mZdefd��YZde	jeefd��YZed	kr�e	j�ndS(
i����N(tdeepcopy(ttest_support(tTestEqualitytTestHashingt
LoggingResultt#ResultWithNoStartTestRunStopTestRuntTestcBsVeZdZdejfd��YZdefd��YZdejfd��YZRS(s5Keep these TestCase classes out of the main namespacetFoocBseZd�Zd�ZRS(cCsdS(N((tself((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pytrunTesttcCsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest1R
(t__name__t
__module__R	R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRs	tBarcBseZd�ZRS(cCsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest2R
(RR
R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRstLoggingTestCasecBs2eZdZd�Zd�Zd�Zd�ZRS(s!A test case which logs its calls.cCs&ttj|�jd�||_dS(Nttest(tsuperRRt__init__tevents(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRscCs|jjd�dS(NtsetUp(Rtappend(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR"scCs|jjd�dS(NR(RR(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR%scCs|jjd�dS(NttearDown(RR(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR(s(RR
t__doc__RRRR(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRs
			(RR
RtunittesttTestCaseRRR(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRst
Test_TestCasecBs�eZejd�ejd�fgZejd�ejd�fejd�ejd�fejd�ejd�fgZd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zejej j!dkd�d��Z"ejej j!dkd�d��Z#d�Z$d�Z%d�Z&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/�Z6d0�Z7d1�Z8d2�Z9d3�Z:d4�Z;d5�Z<d6�Z=d7�Z>d8�Z?d9�Z@d:�ZAd;�ZBd<�ZCd=�ZDd>�ZERS(?RR	RcCs:dtjfd��Y}|j|�j�dd�dS(NRcBseZd�Zd�ZRS(cSs
t��dS(N(t	TypeError(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	HR
cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRIR
(RR
R	R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRGs	i�s
.Test.runTest(RRtassertEqualtid(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest_init__no_test_nameFscCs=dtjfd��Y}|j|d�j�dd�dS(NRcBseZd�Zd�ZRS(cSs
t��dS(N(R(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	SR
cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRTR
(RR
R	R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRRs	Ri����s
.Test.test(RRRR(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest_init__test_name__validQscCsLdtjfd��Y}y|d�Wntk
r:nX|jd�dS(NRcBseZd�Zd�ZRS(cSs
t��dS(N(R(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	^R
cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR_R
(RR
R	R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR]s	ttestfoosFailed to raise ValueError(RRt
ValueErrortfail(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest_init__test_name__invalid\s
cCs9dtjfd��Y}|j|d�j�d�dS(NRcBseZd�ZRS(cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRlR
(RR
R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRksRi(RRRtcountTestCases(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest_countTestCasesjscCsEdtjfd��Y}|�j�}|jt|�tj�dS(NRcBseZd�ZRS(cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	vs(RR
R	(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRus(RRtdefaultTestResultRttypet
TestResult(RRtresult((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest_defaultTestResulttscsjg}t|�}dtjf�fd��Y��|�j|�ddddg}|j||�dS(NRcseZ�fd�ZRS(cs#t�|�j�td��dS(Nsraised by Foo.setUp(RRtRuntimeError(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s(RR
R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�st	startTestRtaddErrortstopTest(RRRtrunR(RRR*texpected((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt#test_run_call_order__error_in_setUp�scsag}dtjf�fd��Y��|�j�ddddddg}|j||�dS(	NRcs eZd�Z�fd�ZRS(cSs
t|j�S(N(RR(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR'�scs#t�|�j�td��dS(Nsraised by Foo.setUp(RRR,(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s(RR
R'R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s	tstartTestRunR-RR.R/tstopTestRun(RRR0R(RRR1((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt2test_run_call_order__error_in_setUp_default_result�scspg}t|�}dtjf�fd��Y�ddddddg}�|�j|�|j||�dS(	NRcseZ�fd�ZRS(cs#t�|�j�td��dS(Nsraised by Foo.test(RRR,(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s(RR
R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�sR-RRR.RR/(RRRR0R(RRR*R1((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt"test_run_call_order__error_in_test�s	csgg}dtjf�fd��Y�ddddddd	d
g}�|�j�|j||�dS(NRcs eZd�Z�fd�ZRS(cSs
t|j�S(N(RR(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR'�scs#t�|�j�td��dS(Nsraised by Foo.test(RRR,(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s(RR
R'R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s	R3R-RRR.RR/R4(RRR0R(RRR1((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt1test_run_call_order__error_in_test_default_result�scspg}t|�}dtjf�fd��Y�ddddddg}�|�j|�|j||�dS(	NRcseZ�fd�ZRS(cs$t�|�j�|jd�dS(Nsraised by Foo.test(RRR#(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s(RR
R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�sR-RRt
addFailureRR/(RRRR0R(RRR*R1((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt$test_run_call_order__failure_in_test�s	csgdtjf�fd��Y�ddddddd	d
g}g}�|�j�|j||�dS(NRcs eZd�Z�fd�ZRS(cSs
t|j�S(N(RR(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR'�scs$t�|�j�|jd�dS(Nsraised by Foo.test(RRR#(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s(RR
R'R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s	R3R-RRR8RR/R4(RRR0R(RR1R((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt3test_run_call_order__failure_in_test_default_result�scspg}t|�}dtjf�fd��Y��|�j|�ddddddg}|j||�dS(	NRcseZ�fd�ZRS(cs#t�|�j�td��dS(Nsraised by Foo.tearDown(RRR,(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�s(RR
R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�sR-RRRR.R/(RRRR0R(RRR*R1((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt&test_run_call_order__error_in_tearDown�s	csgdtjf�fd��Y�g}�|�j�ddddddd	d
g}|j||�dS(NRcs eZd�Z�fd�ZRS(cSs
t|j�S(N(RR(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR'scs#t�|�j�td��dS(Nsraised by Foo.tearDown(RRR,(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRs(RR
R'R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRs	R3R-RRRR.R/R4(RRR0R(RRR1((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt5test_run_call_order__error_in_tearDown_default_resultscCs-dtjfd��Y}|d�j�dS(NRcBseZd�Zd�ZRS(cSst�S(N(R(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR'scSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRs(RR
R'R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRs	R(RRR0(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt"test_run_call_order_default_resultscCs6dtjfd��Y}|j|d�jt�dS(NRcBseZd�ZRS(cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR%s(RR
R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR$sR(RRtassertIstfailureExceptiontAssertionError(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest_failureException__default#scCszg}t|�}dtjfd��Y}|j|d�jt�|d�j|�dddg}|j||�dS(NRcBseZd�ZeZRS(cSs
t��dS(N(R,(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR5s(RR
RR,R?(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR4s	RR-R8R/(RRRR>R?R,R0R(RRR*RR1((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt2test_failureException__subclassing__explicit_raise0scCszg}t|�}dtjfd��Y}|j|d�jt�|d�j|�dddg}|j||�dS(NRcBseZd�ZeZRS(cSs|jd�dS(Ntfoo(R#(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRLs(RR
RR,R?(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRKs	RR-R8R/(RRRR>R?R,R0R(RRR*RR1((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt2test_failureException__subclassing__implicit_raiseGscCs*dtjfd��Y}|�j�dS(NRcBseZd�ZRS(cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	[s(RR
R	(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRZs(RRR(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt
test_setUpYscCs*dtjfd��Y}|�j�dS(NRcBseZd�ZRS(cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	ds(RR
R	(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRcs(RRR(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt
test_tearDownbscCs6dtjfd��Y}|j|�j�t�dS(NRcBseZd�ZRS(cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	rs(RR
R	(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRqs(RRtassertIsInstanceRt
basestring(RR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttest_idpscsag�dtjf�fd��Y}|d�j�ddddddg}|j�|�dS(	NRcs&eZ�fd�Z�fd�ZRS(cs�jd�dS(NR(R(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRscs
t��S(N(R(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR'�s(RR
RR'((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR~sRR3R-t
addSuccessR/R4(RRR0R(RRR1((Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt test_run__uses_defaultTestResult{scCs|j|j��dS(N(tassertIsNonetshortDescription(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt$testShortDescriptionWithoutDocstring�sis)Docstrings are omitted with -O2 and abovecCs|j|j�d�dS(s7Tests shortDescription() for a method with a docstring.N(RRM(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt(testShortDescriptionWithOneLineDocstring�s	cCs|j|j�d�dS(s�Tests 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</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt*testShortDescriptionWithMultiLineDocstring�s		csodtfd��Y�����}}|j||�d�fd�}|j�|�|j||�dS(NtSadSnakecBseZdZRS(s)Dummy class for test_addTypeEqualityFunc.(RR
R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRQ�scs$t|�t|�ko!�kSS(N(R((tatbtmsg(RQ(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pytAllSnakesCreatedEqual�s(tobjecttassertNotEqualtNonetaddTypeEqualityFuncR(Rts1ts2RU((RQs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAddTypeEqualityFunc�scCs<t�}|j||�|j|j|j|t��dS(N(RVR>tassertRaisesR?(Rtthing((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertIs�s	cCs<t�}|j|t��|j|j|j||�dS(N(RVtassertIsNotR]R?(RR^((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertIsNot�s	cCs6g}|j|t�|j|j|j|t�dS(N(RGtlistR]R?tdict(RR^((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertIsInstance�scCs6g}|j|t�|j|j|j|t�dS(N(tassertNotIsInstanceRcR]R?Rb(RR^((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertNotIsInstance�scCsKidd6dd6dd6}|jdd�|jd	d
d	dg�|jd|�|jdd�|jd
d
d	dg�|jd|�|j|j|jdd�|j|j|jdd
d	dg�|j|j|jd|�|j|j|jdd�|j|j|jd
d
d	dg�|j|j|jd|�dS(NtbananatmonkeytgrasstcowtfishtsealRRtabciiitditottertxitelephanttc(tassertIntassertNotInR]R?(Rtanimals((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertIn�s%%cCs&|jii�|jiidd6�|jidd6idd6�|jidd6idd6dd6�|jidd6dd6idd6dd6�|j|j��|jidd6i�WdQX|j|j��#|jidd6idd6�WdQX|j|j��#|jidd6idd6�WdQX|j|j��*|jidd6dd6idd6�WdQX|j|j��*|jidd6dd6idd6�WdQXtjdtf��[djd�td	�D��}|j|j��#|ji|d
6idd
6�WdQXWdQXdS(NiRRiRStoneRrR
css|]}t|�VqdS(N(tchr(t.0ti((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pys	<genexpr>�si�RCu�(tassertDictContainsSubsetR]R?Rtcheck_warningstUnicodeWarningtjointrange(RRw((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertDictContainsSubset�s&%,$$++cCsddfiifggft�t�ft�t�fg}x�|D]�\}}y|j||�Wn+|jk
r�|jd||f�nXy|j||dd�Wn+|jk
r�|jd||f�nXy|j||d�WqF|jk
r |jd||f�qFXqFWd
gfit�ftddg�tddg�ftdd	g�tdd
g�ftd
dg�td	dg�fg}xq|D]i\}}|j|j|j||�|j|j|j||d�|j|j|j||dd�q�WdS(NsassertEqual(%r, %r) failedRTRCs$assertEqual(%r, %r) with msg= faileds/assertEqual(%r, %r) with third parameter failediiiii((((tsett	frozensetRR?R#R](Rtequal_pairsRRRSt
unequal_pairs((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertEqual�s<					!!'cCs�|jgg�|jdd�|jgd�ddgg}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
ii�idd6}i}|jtjj|j
||�|j|�|j
||�d|d<|jtjj|j
||d�|j|j|j
d|�|j|j|j
g|�|j|j|j
dd�dS(	NiRRiRpsThese are unequal((((tassertListEqualtassertTupleEqualtassertSequenceEqualR]RRR?ttupletextendRXtassertDictEqualtupdate(RRRRSRrRn((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestEqualitysT





cCs|j|jd�ddd}ddd
}djtjtj|�j�tj|�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.i�ii(RtmaxDiffR~tdifflibtndifftpprinttpformatt
splitlinesRtcasetDIFF_OMITTEDtlenR�R?targsR#t
assertLessRst
assertGreaterRtRX(Rtseq1tseq2tdifftomittedteRT((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertSequenceEqualMaxDiffRs<

	
cCs�d|_|jdd�}tjjtd�}|j|d|�d|_|jdd�}|j|d�d|_|jdd�}|j|d�dS(NiRCtbartfoobari(R�t_truncateMessageRR�R�R�RRX(RtmessageR�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestTruncateMessageys			cCs|tjd�}d�}||_y|jiidd6�Wn,|jk
rj}|jt|�d�nX|jd�dS(NRcSsdS(NRC((RTR�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttruncate�siiRCsassertDictEqual did not fail(RRR�R�R?RtstrR#(RRR�R�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertDictEqualTruncates�s		cCsutjd�}d�}||_y|jdd�Wn,|jk
rc}|jt|�d�nX|jd�dS(NRcSsdS(NRC((RTR�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��sRCR�s!assertMultiLineEqual did not fail(RRR�tassertMultiLineEqualR?RR�R#(RRR�R�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt!testAssertMultiLineEqualTruncates�s		cs��j�jd�d�_�j�d�_�j��fd��dd}�j�j��}�j|d|d�WdQX�jd	t|j	���j|d|d�dd}d�}�j
�|�_
�j��fd��|d|d}}�j�j��}�j||�WdQX�jd	t|j	���jt|j	�d
||f��j|d|d�dS(Niiicst�d��S(Nt_diffThreshold(tsetattr((t
old_thresholdR(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt<lambda>�R
uxiRRRSt^i	cSstd��dS(Nsthis should not be raised(tSystemError(R�R�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pytexplodingTruncation�scst�d��S(NR�(R�((told_truncateR(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��R
s%r != %riii�i(RR�RXR�t
addCleanupR]R?RsR�t	exceptionR�Rt(RtstcmR�RZR[((R�R�Rs</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertEqual_diffThreshold�s*			

			#cCsyt�}|jdddgdddg�|jdddgdddg�|j||dddg|dd|df�|jddddgddtdg�|j|j|jddgdgd	dgd	ddg�|j|j|jddddgddtdg�|j|j|jd
gd
dg�|j|j|jd
dgd
g�|j|j|jd
dd
gd
dg�|jddgddgd
gtddgddgg�|jtddgddg�tddgddg��|j|j|jgtddddt�g�|jidd6idd6gidd6idd6g�|jddtggtgddg�|j|j|jgtgddddt	�g�|j|j|jdggdgg�|j|j|jdddgddg�|j|j|jdddddgddtdg�|j|j|jdidd6dtgidd6tdg�ddhddhg}|ddd�}|j||�t	tjj
dd��}ddddh}|j||�tjj
ggg�}|j|dd
gfg�t	tjjdd��}ddddh}|j||�dS(NiiiRCR�tbazt2RRidi
iiiRpy@y@RSi����taaabccdtabbbcceRnR�(iiRR(iiRS(iiRn(iiR�(iiRR(iiRS(iiRn(iiR�(RVtassertItemsEqualtTrueR]R?tFalsetitertdivmodR�R�RXRtutilt_count_diff_all_purposeRt_count_diff_hashable(RRRRStdiffsR1((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertItemsEqual�sV	"".(,":8("%-cCs*t�}t�}|j||�|j|j|jd|�|j|j|jg|�|j|j|j|d�|j|j|j|g�tdg�}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
dg�}tdg�}|j|j|j||�dS(
NRRRSRCiiiiii(ii(ii(ii(R�tassertSetEqualR]R?RXR�(Rtset1tset2((s</opt/alt/python27/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|jdd�dS(	Niig�������?g�?tbugtantubuguant(R�tassertGreaterEqualR�tassertLessEqualR]R?(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestInequality)s�cCs�d}d}d}d|_x�d�d�fD]w}y |j||�||��Wq.|jk
r�}t|�jd�jdd�d}|j||k�q.Xq.WdS(	Nsxhttp://www.python.org/doc/2.3/lib/module-unittest.html
test case
    A test case is the smallest unit of testing. [...]
s�http://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</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��R
cSs
|jd�S(Ntutf8(tdecode(Rp((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��R
R�s
i(RXR�R�R?R�tencodetsplitt
assertTrue(Rtsample_texttrevised_sample_texttsample_text_errorttype_changerR�terror((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertMultiLineEquals	%cCsrd}d}d}y|j||�WnE|jk
rm}t|�jdd�d}|j||k�nXdS(Nuladen swallows fly slowlyuunladen swallows fly quicklysr- laden swallows fly slowly
?                    ^^^^
+ unladen swallows fly quickly
? ++                   ^^^^^
s
i(RR?R�R�R�(RR�R�R�R�R�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAsertEqualSingleLine�scCsP|jd�|j|j|jt�|jd�|j|j|jd�dS(NsDjZoPloGears on Rails(RLRXR]R?R�tassertIsNotNone(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertIsNone�s

cCs0|jdd�|j|j|jdd�dS(Nt
asdfabasdfsab+tsaaastaaaa(tassertRegexpMatchesR]R?(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertRegexpMatches�scs�dtfd��Y��fd�}|j�|�|jt�f|�|jttddd�|j|j��|j�d��WdQX|j���|jt|�WdQXdS(Nt
ExceptionMockcBseZRS((RR
(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��scs�d��dS(Ns	We expect(((R�(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pytStub�st19tbaseicSsdS(Ni((((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��R
(t	ExceptionR]R"tintR?(RR�((R�s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesCallable�scsdtfd��Y��fd�}|j���|�WdQX|jt�f��}|�WdQX|j|j��|j|jjdd�|jt��tddd�WdQX|j|j��|j���WdQXWdQX|j���|jt|�WdQXdS(	NR�cBseZRS((RR
(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��scs�d��dS(Ns	We expect(((R�(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��sis	We expectR�R�i(	R�R]R"RGR�RR�R�R?(RR�R�((R�s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesContext�s

cskdtfd��Y��fd�}|j�tjd�|�|j�d|�|j�d|�dS(NR�cBseZRS((RR
(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��scs�d��dS(Ns	We expect(((R�(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��ssexpect$uexpect$(R�tassertRaisesRegexptretcompile(RR�((R�s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesRegexp�s
cCs||j|jd|jttjd�d��|j|jd|jtdd��|j|jd|jtdd��dS(Ns^Exception not raised$RpcSsdS(N(RX(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��R
cSsdS(N(RX(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��R
uxcSsdS(N(RX(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR��R
(R�R?R�R�R�(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertNotRaisesRegexp�s	
	
	cCs6dtfd��Y}|jt|j|d��dS(NtMyExccBseZRS((RR
(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�scSstS(N(R�(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�R
(R�R]RR�(RR�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt#testAssertRaisesRegexpInvalidRegexp�scCs|d�}|j|jd|jtd|�|j|jd|jtd|�|j|jd|jttjd�|�dS(NcSstd��dS(Nt
Unexpected(R�(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�ss*"\^Expected\$" does not match "Unexpected"s
^Expected$u
^Expected$(R�R?R�R�R�(RR�((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesRegexpMismatchs 		cs�dtfd��Y��fd�}d}|j��}|�||�WdQX|j}|j|��|j|jd|�dS(NR�cBseZRS((RR
(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�scs�|��dS(N((RC(R�(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�ssparticular valuei(R�R]R�RGRR�(RR�tvtctxR�((R�s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestAssertRaisesExcValues	cCsQ|jdd�|jdd�|jdd�|jdd�|jt�dS(s�Test 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</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestSynonymAssertMethodNames(s
cCs�tj��r|jdd�|jdd�|jdd�|jdd�|jt�|jt	d��|j
t�WdQXdS(s�Test 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(Ng��Q�	@uspam((t_((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR�AR
N(RR|tfailIfEqualtfailUnlessEqualtfailUnlessAlmostEqualtfailIfAlmostEqualt
failUnlessR�tfailUnlessRaisesRtfailIfR�(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt!testPendingDeprecationMethodNames6s

cCs3dtjfd��Y}|d�}t|�dS(NtTestableTestcBseZd�ZRS(cSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestNothingGs(RR
R(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRFsR(RRR(RRR((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestDeepcopyDscs�dd��d��dtjf�fd��Y}dtjf��fd��Y}dtjf��fd��Y}d	tjf�fd
��Y}x@||||fD],}|jt��|d�j�WdQXq�WdS(NcSs
t�dS(N(tKeyboardInterrupt(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt_raisePscSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pytnothingRstTest1cseZ�ZRS((RR
ttest_something((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR
UstTest2cseZ�Z�ZRS((RR
RR((RR	(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRXstTest3cseZ�Z�ZRS((RR
RR((RR	(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR
\stTest4cseZ�fd�ZRS(cs|j��dS(N(R�(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRas(RR
R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR`sR(RXRRR]RR0(RR
RR
Rtklass((RR	s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestKeyboardInterruptOs	""csdd��d��dtjf�fd��Y}dtjf��fd��Y}dtjf��fd��Y}d	tjf�fd
��Y}xe||||fD]Q}tj�}|d�j|�|jt|j�d�|j|jd�q�WdS(
NcSs
t�dS(N(t
SystemExit(R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRiscSsdS(N((R((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR	ksR
cseZ�ZRS((RR
R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR
nsRcseZ�Z�ZRS((RR
RR((RR	(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRqsR
cseZ�Z�ZRS((RR
RR((RR	(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR
usRcseZ�fd�ZRS(cs|j��dS(N(R�(R(R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRzs(RR
R((R(s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyRysRi(	RXRRR)R0RR�terrorsttestsRun(RR
RR
RRR*((RR	s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyttestSystemExiths	""cCsetjd�}xOttjd�D]:}tj|d|�}tj|�}|j||�q#WdS(NR0itprotocol(RRRtpickletHIGHEST_PROTOCOLtdumpstloadsR(RRRtpickled_testtunpickled_test((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt
testPickle�s
(FRR
RRteq_pairsRtne_pairsRR R$R&R+R2R5R6R7R9R:R;R<R=RARBRDRERFRIRKRNRtskipIftsystflagstoptimizeRORPR\R_RaRdRfRvR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRRR(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyR,s�!!				
											
								
	
							%	4	'				$	>	(	V	$															t__main__(R�R�RR�R tcopyRRRRtunittest.test.supportRRRRRVRRRRtmain(((s</opt/alt/python27/lib64/python2.7/unittest/test/test_case.pyt<module>s "����j

Zerion Mini Shell 1.0