[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@13.58.32.115: ~ $


��Yf�@s�dZddlZddlmZddlmZmZddlmZGdd�d�Z	Gdd	�d	ej
�Zed
kr�ej
dd�dS)
z!Unit tests for idlelib.AutoExpand�N)�requires)�Text�Tk)�
AutoExpandc@seZdZdd�ZdS)�
Dummy_EditwincCs
||_dS)N)�text)�selfr�r	�F/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_autoexpand.py�__init__szDummy_Editwin.__init__N)�__name__�
__module__�__qualname__rr	r	r	r
r	src@s|eZdZedd��Zedd��Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�ZdS)�AutoExpandTestcCsedtt�kr=td�t�|_t|j�|_nt�|_tt|j��|_dS)N�tkinterZgui)	�strrrr�tkrrr�auto_expand)�clsr	r	r
�
setUpClasss
zAutoExpandTest.setUpClasscCs2|`|`t|d�r.|jj�|`dS)Nr)rr�hasattrrZdestroy)rr	r	r
�
tearDownClasss
zAutoExpandTest.tearDownClasscCs|jjdd�dS)Nz1.0�end)r�delete)rr	r	r
�tearDown!szAutoExpandTest.tearDowncCs|j}|jj}|j}||�d�|jdd�||�d�|jdd�||�d�|jdd�||�d�|jdd�||�d�|jdd�||�d	�|jd
d�||�d�|jdd�||�d�dS)
N��insert�tZhis�this� �isz
sample
string�stringz3.0z1.0r)rr�getprevword�assertEqualrr)rr�previous�equalr	r	r
�test_get_prevword$s$		z AutoExpandTest.test_get_prevwordcCs�|jj}|jj}|j}|jjdd�||jj�ddddg�|d�||�d�|d�||�d�|d�||�d�|d�||�d�dS)Nrzab ac bx ad ab a�ab�ad�ac�a�event)rr"�expand_word_eventr#rr�getwords)rr$�expandr%r	r	r
�test_before_only@s	"



zAutoExpandTest.test_before_onlycCs�|j}|jj}|jj}|j}|jdd�|jdd�||jj�ddddg�|d�||�d�|d�||�d�|d�||�d�|d�||�d�dS)	Nrz a, [ab] ac: () bx"" cd ac= ad yaz1.1r'r)r(r*r+)rrr"r,r#r�mark_setr-)rrr$r.r%r	r	r
�test_after_onlyPs		"



zAutoExpandTest.test_after_onlycCs�|j}|jj}|jj}|j}|jdd�|jdd�|jdd�||jj�dddg�|d�||�d�|d�||�d�|d�||�d�dS)	Nrz	ab xy yz
z
a ac by acz2.1r'r)r*r+)rrr"r,r#rr0r-)rrr$r.r%r	r	r
�test_both_before_aftercs		


z%AutoExpandTest.test_both_before_aftercCs�|j}|jj}|j}||jj�g�||d�d�|jdd�||jj�g�|jdd�|jdd�|d�|jj}|jdd�|d�|jj}|j||�dS)Nr+�breakrz
bx cy dz azac xy a ac ad az1.7z1.end)	rrr,r#r-rr0�stateZassertNotEqual)rrr.r%Z
initial_stateZ	new_stater	r	r
�test_other_expand_casesus		

z&AutoExpandTest.test_other_expand_casesN)rr
r�classmethodrrrr&r/r1r2r5r	r	r	r
rs
r�__main__�	verbosity�)�__doc__ZunittestZtest.supportrrrrZidlelib.AutoExpandrrZTestCaserr�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