[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.191.234.202: ~ $


���]S�@s�ddlZddlmZddlmZGdd�de�ZGdd�deej�ZGdd	�d	eej�Z	e
d
kr�ejddd
d�dS)�N)�requires)�TclErrorc@s�eZdZdZedZdZdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)�TextTestzhello
world�
NcCs|j�|_dS)N)�Text�text)�self�r	�./opt/alt/python35/lib64/python3.5/test_text.py�setUp
szTextTest.setUpcCs<|j|jjd�d�|j|jjd�d�dS)Nz1.0r�end�)�assertEqualr�get)rr	r	r
�	test_initszTextTest.test_initcCs^|jj}x$dD]}|j||�d�qWx$dD]}|j||�d
�q:WdS)Ng�?�333333�?�1.-1�1.0�1.0 lineend�1.end�1.33�insertr�@�2.1�33.44z2.0��)rrrrrrrr)rrrr)r�indexr)rr�dexr	r	r
�test_index_emptys

zTextTest.test_index_emptycCs�|jj}|jjd|j�x$d
D]}|j||�d�q)Wx$dD]}|j||�d�qPWx$dD]}|j||�d�qwWdS)N�1.0g�?�333333�?�1.-1�1.0 lineend�1.end�1.33z1.5r�33.44z3.0��)r&r r!r)r"r#r$)rr%)rrr�hwr)rrrr	r	r
�test_index_datas


zTextTest.test_index_datacCsM|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)Nz1.0rr
�hz1.1z1.3Zhel�elz1.0 lineend�helloz1.10rz2.3zello
worz2.5z0.0z5.0)rrrrr'�hwn)rr�Equalr	r	r
�test_get+s 	zTextTest.test_getcCs#|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)Nz1.0rr
�*z
*hello
world
z1.0 lineendz*hello*
world
z2.3z*hello*
wor*ld
�xz*hello*
wor*ldx
z1.4zx
z*helx
lo*
wor*ldx
)rrrrr'r,)rrrr-r	r	r
�test_insert>s"	





zTextTest.test_insertcCs|jj}|jj}|j}|jjd|j�|d�||dd�|j�|d�||dd�|j�|dd�||dd�|j�|dd�||dd�|j�|dd�||dd�|j�|dd�||dd�|j�dS)Nz1.0rrz5.5z1.4)r�deleterrrr'r,)rr2rr-r	r	r
�test_no_deleteXs 	





zTextTest.test_no_deletecCs|jj}|jj}|j}|jjd|j�|d�||dd�d�|dd�||dd�d�|d�||dd�d�|jjdd�|d	�||dd�d�|jjdd�|dd
�||dd�d�dS)Nz1.0z1.endZelloz1.1ZlloZlloworldz1.3rz1.10z2.0)rr2rrrr')rr2rr-r	r	r
�test_delete_charqs 	




zTextTest.test_delete_charcCs|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)Nz1.0z1.0 lineendrz
world
rz2.0zworld
z1.2z2.3zheld
)rr2rrrr')rr2rr-r	r	r
�test_delete_slice�s 	




zTextTest.test_delete_slicecCs{|jjdd�|jjdd�|j|jjdd�d�|jjdd�|j|jjdd�d�dS)	Nz1.0r+z1.3z	1
2
3
4
5rzhel1
2
3
4
5lo
z5.1zhello
)rrrrr2)rr	r	r
�test_multiple_lines�s
zTextTest.test_multiple_linesc	Cs�|jj}|j}|jjdd�|jt|ddd�x�dD]�\}}}}}}||d
|d�||�||d|d�||�||d|d�||�||d|d�||�||d|d�||�qHWdS)Nz1.0zFirst
Second
Third
z2.2�op�<TF�<=�>�>=�==�!=z1.1z2.1z2.3z3.3�r8TTFFF�r9TTTFF�r:FFFTT�r;FFTTT�r<FFTFF�r=TTFTT)r>r?r@rArBrC)r�comparerrZassertRaisesr)	rrDr-r7Zless1Zless0ZequalZgreater0Zgreater1r	r	r
�test_compare�s 	zTextTest.test_compare)�__name__�
__module__�__qualname__r'r,rrrrr(r.r1r3r4r5r6rEr	r	r	r
rs


	rc@s.eZdZedd��Zdd�ZdS)�MockTextTestcCsddlm}||_dS)Nr)r)Zidlelib.idle_test.mock_tkr)�clsrr	r	r
�
setUpClass�szMockTextTest.setUpClasscCs�|jj}|j}|jjd|j�||dd	�d
�||dd�d�||dd�d
�||dd�d�dS)Nz1.0r���z3.1r����)rMrNrP)rMrN)rMrO)rMrO)rZ_decoderrr')r�decoder-r	r	r
�test_decode�s	zMockTextTest.test_decodeN)rFrGrH�classmethodrKrRr	r	r	r
rI�srIc@s4eZdZedd��Zedd��ZdS)�
TkTextTestcCs9td�ddlm}m}||_|�|_dS)NZguir)�Tkr)r�tkinterrUr�root)rJrUrr	r	r
rK�s
	zTkTextTest.setUpClasscCs|jj�|`dS)N)rWZdestroy)rJr	r	r
�
tearDownClass�s
zTkTextTest.tearDownClassN)rFrGrHrSrKrXr	r	r	r
rT�srT�__main__�	verbosityrM�exitF)ZunittestZtest.supportrZ_tkinterr�objectrZTestCaserIrTrF�mainr	r	r	r
�<module>s�

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 823 B 0644
__init__.cpython-35.opt-2.pyc File 496 B 0644
__init__.cpython-35.pyc File 823 B 0644
htest.cpython-35.opt-1.pyc File 11.44 KB 0644
htest.cpython-35.opt-2.pyc File 9.17 KB 0644
htest.cpython-35.pyc File 11.44 KB 0644
mock_idle.cpython-35.opt-1.pyc File 2.4 KB 0644
mock_idle.cpython-35.opt-2.pyc File 1.71 KB 0644
mock_idle.cpython-35.pyc File 2.4 KB 0644
mock_tk.cpython-35.opt-1.pyc File 11.12 KB 0644
mock_tk.cpython-35.opt-2.pyc File 6.29 KB 0644
mock_tk.cpython-35.pyc File 11.12 KB 0644
test_autocomplete.cpython-35.opt-1.pyc File 4.95 KB 0644
test_autocomplete.cpython-35.opt-2.pyc File 4.93 KB 0644
test_autocomplete.cpython-35.pyc File 4.95 KB 0644
test_autoexpand.cpython-35.opt-1.pyc File 4.13 KB 0644
test_autoexpand.cpython-35.opt-2.pyc File 4.06 KB 0644
test_autoexpand.cpython-35.pyc File 4.13 KB 0644
test_calltips.cpython-35.opt-1.pyc File 10.01 KB 0644
test_calltips.cpython-35.opt-2.pyc File 9.88 KB 0644
test_calltips.cpython-35.pyc File 10.09 KB 0644
test_config_help.cpython-35.opt-1.pyc File 4.31 KB 0644
test_config_help.cpython-35.opt-2.pyc File 4.23 KB 0644
test_config_help.cpython-35.pyc File 4.31 KB 0644
test_config_name.cpython-35.opt-1.pyc File 3.16 KB 0644
test_config_name.cpython-35.opt-2.pyc File 3.08 KB 0644
test_config_name.cpython-35.pyc File 3.16 KB 0644
test_configdialog.cpython-35.opt-1.pyc File 1.43 KB 0644
test_configdialog.cpython-35.opt-2.pyc File 1.27 KB 0644
test_configdialog.cpython-35.pyc File 1.43 KB 0644
test_delegator.cpython-35.opt-1.pyc File 1.1 KB 0644
test_delegator.cpython-35.opt-2.pyc File 1.09 KB 0644
test_delegator.cpython-35.pyc File 1.1 KB 0644
test_editmenu.cpython-35.opt-1.pyc File 2.88 KB 0644
test_editmenu.cpython-35.opt-2.pyc File 2.48 KB 0644
test_editmenu.cpython-35.pyc File 2.88 KB 0644
test_editor.cpython-35.opt-1.pyc File 1.19 KB 0644
test_editor.cpython-35.opt-2.pyc File 1.17 KB 0644
test_editor.cpython-35.pyc File 1.19 KB 0644
test_formatparagraph.cpython-35.opt-1.pyc File 12.41 KB 0644
test_formatparagraph.cpython-35.opt-2.pyc File 11.65 KB 0644
test_formatparagraph.cpython-35.pyc File 12.41 KB 0644
test_grep.cpython-35.opt-1.pyc File 3.08 KB 0644
test_grep.cpython-35.opt-2.pyc File 2.54 KB 0644
test_grep.cpython-35.pyc File 3.08 KB 0644
test_help_about.cpython-35.opt-1.pyc File 1.96 KB 0644
test_help_about.cpython-35.opt-2.pyc File 1.82 KB 0644
test_help_about.cpython-35.pyc File 1.96 KB 0644
test_hyperparser.cpython-35.opt-1.pyc File 8 KB 0644
test_hyperparser.cpython-35.opt-2.pyc File 7.81 KB 0644
test_hyperparser.cpython-35.pyc File 8 KB 0644
test_idlehistory.cpython-35.opt-1.pyc File 6.72 KB 0644
test_idlehistory.cpython-35.opt-2.pyc File 6.57 KB 0644
test_idlehistory.cpython-35.pyc File 6.72 KB 0644
test_io.cpython-35.opt-1.pyc File 8.76 KB 0644
test_io.cpython-35.opt-2.pyc File 8.75 KB 0644
test_io.cpython-35.pyc File 8.76 KB 0644
test_parenmatch.cpython-35.opt-1.pyc File 4.06 KB 0644
test_parenmatch.cpython-35.opt-2.pyc File 3.61 KB 0644
test_parenmatch.cpython-35.pyc File 4.06 KB 0644
test_pathbrowser.cpython-35.opt-1.pyc File 1.31 KB 0644
test_pathbrowser.cpython-35.opt-2.pyc File 1.29 KB 0644
test_pathbrowser.cpython-35.pyc File 1.31 KB 0644
test_percolator.cpython-35.opt-1.pyc File 5.18 KB 0644
test_percolator.cpython-35.opt-2.pyc File 5.13 KB 0644
test_percolator.cpython-35.pyc File 5.18 KB 0644
test_replacedialog.cpython-35.opt-1.pyc File 7.5 KB 0644
test_replacedialog.cpython-35.opt-2.pyc File 7.43 KB 0644
test_replacedialog.cpython-35.pyc File 7.5 KB 0644
test_rstrip.cpython-35.opt-1.pyc File 1.55 KB 0644
test_rstrip.cpython-35.opt-2.pyc File 1.54 KB 0644
test_rstrip.cpython-35.pyc File 1.55 KB 0644
test_searchdialog.cpython-35.opt-1.pyc File 2.42 KB 0644
test_searchdialog.cpython-35.opt-2.pyc File 2.34 KB 0644
test_searchdialog.cpython-35.pyc File 2.42 KB 0644
test_searchdialogbase.cpython-35.opt-1.pyc File 5.79 KB 0644
test_searchdialogbase.cpython-35.opt-2.pyc File 5.58 KB 0644
test_searchdialogbase.cpython-35.pyc File 5.79 KB 0644
test_searchengine.cpython-35.opt-1.pyc File 10.7 KB 0644
test_searchengine.cpython-35.opt-2.pyc File 10.61 KB 0644
test_searchengine.cpython-35.pyc File 10.7 KB 0644
test_text.cpython-35.opt-1.pyc File 6.86 KB 0644
test_text.cpython-35.opt-2.pyc File 6.84 KB 0644
test_text.cpython-35.pyc File 6.86 KB 0644
test_textview.cpython-35.opt-1.pyc File 3.86 KB 0644
test_textview.cpython-35.opt-2.pyc File 3.53 KB 0644
test_textview.cpython-35.pyc File 3.86 KB 0644
test_undodelegator.cpython-35.opt-1.pyc File 4.57 KB 0644
test_undodelegator.cpython-35.opt-2.pyc File 4.3 KB 0644
test_undodelegator.cpython-35.pyc File 4.57 KB 0644
test_warning.cpython-35.opt-1.pyc File 2.84 KB 0644
test_warning.cpython-35.opt-2.pyc File 2.5 KB 0644
test_warning.cpython-35.pyc File 2.84 KB 0644
test_widgetredir.cpython-35.opt-1.pyc File 5.49 KB 0644
test_widgetredir.cpython-35.opt-2.pyc File 5.4 KB 0644
test_widgetredir.cpython-35.pyc File 5.49 KB 0644