Hacked By AnonymousFox

Current Path : /opt/alt/python27/lib64/python2.7/idlelib/idle_test/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyo

�
^
bc@s�ddlZddlmZddlmZdefd��YZdeejfd��YZdeejfd	��YZ	e
d
kr�ejddd
e�ndS(i����N(trequires(tTclErrortTextTestcBs�eZdZedZd
Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�ZRS(shello
worlds
cCs|j�|_dS(N(tTextttext(tself((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pytsetUp
scCs<|j|jjd�d�|j|jjd�d�dS(Ns1.0s
tendt(tassertEqualRtget(R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyt	test_initscCs^|jj}x$dD]}|j||�d�qWx$dD]}|j||�d
�q:WdS(Ng�g333333�?s1.-1s1.0s1.0 lineends1.ends1.33tinsertRg@s2.1s33.44s2.0(g�g333333�?s1.-1s1.0s1.0 lineends1.ends1.33R(Rg@s2.1s33.44(RtindexR	(RR
tdex((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_index_emptys

cCs�|jj}|jjd|j�x$dD]}|j||�d�q)Wx$d
D]}|j||�d�qPWx$dD]}|j||�d�qwWdS(Ns1.0g�g333333�?s1.-1s1.0 lineends1.ends1.33s1.5Rs33.44s3.0(g�g333333�?s1.-1s1.0(s1.0 lineends1.ends1.33(Rs33.44(RR
RthwR	(RR
R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_index_datas


cCsM|jj}|j}|jjd|j�||d�d�||dd�d�||d�d�||dd�d�||dd�d�||dd�d�||dd	�d
�||dd�d
�||d	�d�||dd
�d�||dd�|j�||dd�|j�||dd�|j�dS(Ns1.0RRths1.1s1.3theltels1.0 lineendthellos1.10s
s2.3sello
wors2.5s0.0s5.0(RR
R	RRthwn(RR
tEqual((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_get+s 	cCs#|jj}|jj}|j}|d|j�||dd�|j�|dd�||dd�|j�|dd�||dd�d�|dd�||dd�d�|dd�||dd�d	�|dd
�||dd�d�|dd
�||dd�d�dS(Ns1.0RRt*s
*hello
world
s1.0 lineends*hello*
world
s2.3s*hello*
wor*ld
txs*hello*
wor*ldx
s1.4sx
s*helx
lo*
wor*ldx
(RRR
R	RR(RRR
R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_insert>s"	





cCs|jj}|jj}|j}|jjd|j�|d�||dd�|j�|d�||dd�|j�|dd�||dd�|j�|dd�||dd�|j�|dd�||dd�|j�|dd�||dd�|j�dS(Ns1.0RRs5.5s1.4(RtdeleteR
R	RRR(RRR
R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_no_deleteXs 	





cCs|jj}|jj}|j}|jjd|j�|d�||dd�d�|dd�||dd�d�|d�||dd�d�|jjdd�|d	�||dd�d�|jjdd�|dd
�||dd�d�dS(Ns1.0s1.endtellos1.1tllotlloworlds1.3s
s1.10s2.0(RRR
R	RR(RRR
R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_delete_charqs 	




cCs|jj}|jj}|j}|jjd|j�|dd�||dd�d�|dd�||dd�d�|jjd|j�|dd�||dd�d�|dd�||dd�d�|jjd|j�|dd	�||dd�d
�dS(Ns1.0s1.0 lineendRs
world
s
s2.0sworld
s1.2s2.3sheld
(RRR
R	RR(RRR
R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_delete_slice�s 	




cCs{|jjdd�|jjdd�|j|jjdd�d�|jjdd�|j|jjdd�d�dS(	Ns1.0Rs1.3s	1
2
3
4
5Rshel1
2
3
4
5lo
s5.1shello
(RRR	R
R(R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_multiple_lines�s
c	Csr|jj}|j}|jjdd�|jt|ddd�x*dtttttfdtttttfdtttttfdtttttfd	tttttfd
tttttffD]�\}}}}}}||d|d�||�||d|d�||�||d|d�||�||d
|d�||�||d|d�||�q�WdS(Ns1.0sFirst
Second
Third
s2.2topt<s<=t>s>=s==s!=s1.1s2.1s2.3s3.3(RtcompareR	RtassertRaisesRtTruetFalse(	RR'RR$tless1tless0tequaltgreater0tgreater1((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_compare�s 	1N(t__name__t
__module__RRtNoneRRRRRRRRR!R"R#R0(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyRs
			
	
							tMockTextTestcBs eZed��Zd�ZRS(cCsddlm}||_dS(Ni����(R(tidlelib.idle_test.mock_tkR(tclsR((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyt
setUpClass�scCs�|jj}|j}|jjd|j�||dd�d	�||dd�d
�||dd�d�||dd�d�dS(
Ns1.0Ri����iis3.1ii(ii(ii(ii(ii(Rt_decodeR	RR(RtdecodeR((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyttest_decode�s	(R1R2tclassmethodR7R:(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyR4�st
TkTextTestcBs&eZed��Zed��ZRS(cCs9td�ddlm}m}||_|�|_dS(Ntguii����(tTkR(RtTkinterR>Rtroot(R6R>R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyR7�s
	cCs|jj�|`dS(N(R@tdestroy(R6((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyt
tearDownClass�s
(R1R2R;R7RB(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyR<�st__main__t	verbosityitexit(
tunittestttest.test_supportRt_tkinterRtobjectRtTestCaseR4R<R1tmainR*(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_text.pyt<module>s�

Hacked By AnonymousFox1.0, Coded By AnonymousFox