ok

Mini Shell

Direktori : /proc/thread-self/root/usr/lib64/python2.7/unittest/test/
Upload File :
Current File : //proc/thread-self/root/usr/lib64/python2.7/unittest/test/test_assertions.pyc

�
`цdc@sgddlZddlZdejfd��YZdejfd��YZedkrcej�ndS(i����NtTest_AssertionscBs,eZd�Zd�Zd�Zd�ZRS(cCsH|jdd�|jdd�|j|j|jdd�|j|j|jdd�|jdddd�|j|j|jdddd�|jdddd�|jdddd�|j|j|jdd
dd�|j|j|jdddd�|jtd
�td
��|j|j|jtd
�td
��dS(Ng�1��?g�?g����?g�������?tplacesiig�������?y�������?tinfy�������?�������?y�������?�������?y�������?�������?y�������?�������?(tassertAlmostEqualtassertNotAlmostEqualtassertRaisestfailureExceptiontfloat(tself((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttest_AlmostEquals$c	CsS|jdddd�|jdddd�|jdddd�|jdddd�|j|j|jdddd�|j|j|jdddd�|jt|jdddddd�|jt|jdddddd�tjj�}|tjdd	�}|j||dtjdd
��|j||dtjdd��dS(Ng�������?g�?tdeltag�?g�������?Ritsecondsi
ii(RRRRt	TypeErrortdatetimetnowt	timedelta(Rtfirsttsecond((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttest_AmostEqualWithDeltas$c	Cs�d�}|jt|t�|jt|td��y|jtd��Wn)|jk
rw}|jd|j�nX|jd�y|jt|t�Wntk
r�nX|jd�|jt��*}y
t�Wntk
r�}�nXWdQX|j|j	|�|jt��td��WdQXy|jt��WdQXWn)|jk
rr}|jd|j�nX|jd�y |jt��t�WdQXWntk
r�nX|jd�dS(NcSs
|�dS(N((te((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyt_raise6stkeycSsdS(N(tNone(((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyt<lambda>;ssKeyError not raisedsassertRaises() didn't fails0assertRaises() didn't let exception pass through(
RtKeyErrorRtassertIntargstfailt
ValueErrort	ExceptiontassertIst	exception(RRRtcm((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttest_assertRaises5sB	







cCs|jdd�y|jddd�WnD|jk
rm}|jd|jd�|jd|jd�nX|jd�dS(NsAla ma kotasr+sk.ttMessages'kot'is*assertNotRegexpMatches should have failed.(tassertNotRegexpMatchesRRRR(RR((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertNotRegexpMatches^s(t__name__t
__module__R	RR!R$(((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyRs			)tTestLongMessagecBs�eZdZd�Zd�Zd�Zd�Zd�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�ZRS(s�Test that the individual asserts honour longMessage.
    This actually tests all the message behaviour for
    asserts that use longMessage.cs`dtjf�fd��Y}dtjf�fd��Y}|d��_|d��_dS(NtTestableTestFalsecs eZeZ�jZd�ZRS(cSsdS(N((R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestTestss(R%R&tFalsetlongMessageRR)((R(s5/usr/lib64/python2.7/unittest/test/test_assertions.pyR(os	tTestableTestTruecs eZeZ�jZd�ZRS(cSsdS(N((R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyR)zs(R%R&tTrueR+RR)((R(s5/usr/lib64/python2.7/unittest/test/test_assertions.pyR,vs	R)(tunittesttTestCasettestableTruet
testableFalse(RR(R,((Rs5/usr/lib64/python2.7/unittest/test/test_assertions.pytsetUpnscCs|jtjj�dS(N(tassertFalseR.R/R+(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestDefault�scCs�|j|jjdd�d�|j|jjdd�d�|j|jjdd�d�|j|jjdd�d�|jjt�d�dS(Ntfootbars	bar : foo(tassertEqualR1t_formatMessageRR0tobject(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttest_formatMsg�s
cCs6djd�td�D��}|jj|d�dS(Ntcss|]}t|�VqdS(N(tchr(t.0ti((s5/usr/lib64/python2.7/unittest/test/test_assertions.pys	<genexpr>�si�u�(tjointrangeR0R8(Rtone((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyt test_formatMessage_unicode_error�sc
s���fd�}xxt|�D]j\}}||�}i}|d}	|	r]idd6}n�j�jd|��|||�WdQXqWdS(Ncs4|dk}|r�j}n	�j}t|��S(Ni(R1R0tgetattr(R>tuseTestableFalsettest(t
methodNameR(s5/usr/lib64/python2.7/unittest/test/test_assertions.pyt	getMethod�s
	itoopstmsgtexpected_regexp(t	enumeratetassertRaisesRegexpR(
RRFRterrorsRGR>RJt
testMethodtkwargstwithMsg((RFRs5/usr/lib64/python2.7/unittest/test/test_assertions.pytassertMessages�s

cCs&|jdtfddddg�dS(Nt
assertTrues^False is not true$s^oops$s^False is not true : oops$(RQR*(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertTrue�s	cCs&|jdtfddddg�dS(NR3s^True is not false$s^oops$s^True is not false : oops$(RQR-(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertFalse�s	cCs#|jddddddg�dS(NtassertNotEqualis^1 == 1$s^oops$s^1 == 1 : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestNotEqual�s	cCs#|jddddddg�dS(NRiis^1 != 2 within 7 places$s^oops$s^1 != 2 within 7 places : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAlmostEqual�scCs#|jddddddg�dS(NRis^1 == 1 within 7 places$s^oops$s^1 == 1 within 7 places : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestNotAlmostEqual�scCs#|jddddddg�dS(Nt_baseAssertEqualiis^1 != 2$s^oops$s^1 != 2 : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttest_baseAssertEqual�scCs,|jdgdgfddddg�dS(NtassertSequenceEquals\+ \[None\]$s^oops$s\+ \[None\] : oops$(RQR(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertSequenceEqual�s	cCs5|jdt�tdg�fddddg�dS(NtassertSetEqualsNone$s^oops$sNone : oops$(RQtsetR(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertSetEqual�s	cCs)|jddgfddddg�dS(NRs^None not found in \[\]$s^oops$s^None not found in \[\] : oops$(RQR(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertIn�scCs,|jdddgfddddg�dS(NtassertNotIns%^None unexpectedly found in \[None\]$s^oops$s,^None unexpectedly found in \[None\] : oops$(RQR(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertNotIn�scCs0|jdiidd6fddddg�dS(NtassertDictEqualtvalueRs\+ \{'key': 'value'\}$s^oops$s\+ \{'key': 'value'\} : oops$(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertDictEqual�scCs0|jdidd6ifddddg�dS(NtassertDictContainsSubsetRdRs^Missing: 'key'$s^oops$s^Missing: 'key' : oops$(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertDictContainsSubset�scCs#|jddddddg�dS(NtassertMultiLineEqualR;R5s\+ foo$s^oops$s\+ foo : oops$(R;sfoo(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertMultiLineEqual�scCs#|jddddddg�dS(Nt
assertLessiis^2 not less than 1$s^oops$s^2 not less than 1 : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertLess�scCs#|jddddddg�dS(NtassertLessEqualiis^2 not less than or equal to 1$s^oops$s&^2 not less than or equal to 1 : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertLessEqual�scCs#|jddddddg�dS(Nt
assertGreateriis^1 not greater than 2$s^oops$s^1 not greater than 2 : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertGreater�scCs#|jddddddg�dS(NtassertGreaterEqualiis"^1 not greater than or equal to 2$s^oops$s)^1 not greater than or equal to 2 : oops$(ii(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertGreaterEqual�scCs#|jddddddg�dS(NtassertIsNonesnot Nones^'not None' is not None$s^oops$s^'not None' is not None : oops$(snot None(RQ(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertIsNonescCs#|jddddddg�dS(NtassertIsNotNones^unexpectedly None$s^oops$s^unexpectedly None : oops$(N(RQR(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertIsNotNone
scCs#|jddddddg�dS(NRR5s^None is not 'foo'$s^oops$s^None is not 'foo' : oops$(Nsfoo(RQR(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertIsscCs#|jddddddg�dS(NtassertIsNots^unexpectedly identical: None$s^oops$s%^unexpectedly identical: None : oops$(NN(RQR(R((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyttestAssertIsNots(R%R&t__doc__R2R4R:RBRQRSRTRVRWRXRZR\R_R`RbReRgRiRkRmRoRqRsRuRvRx(((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyR'is6			
																						t__main__(R
R.R/RR'R%tmain(((s5/usr/lib64/python2.7/unittest/test/test_assertions.pyt<module>s
c�

Zerion Mini Shell 1.0