[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.138.102.163: ~ $


��Yf5�@s�ddlZddlmZddlmZmZddljZddl	j
Zddlm
Z
ddlmZGdd�d�Z
Gdd	�d	�ZGd
d�dej�Zedkr�ejd
d�dS)�N)�requires)�Tk�Text)�Func)�Eventc@seZdZdd�ZdS)�AutoCompleteWindowcCsdS)N�rrr�H/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_autocomplete.py�completeszAutoCompleteWindow.completeN)�__name__�
__module__�__qualname__r
rrrr	r
src@seZdZdd�ZdS)�DummyEditwincCs1||_||_d|_d|_d|_dS)N�T)�root�textZindentwidthZtabwidthZcontext_use_ps1)�selfrrrrr	�__init__s
				zDummyEditwin.__init__N)rrr
rrrrr	rsrc@s�eZdZedd��Zedd��Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�ZdS)�AutoCompleteTestcCsDtd�t�|_t|j�|_t|j|j�|_dS)NZgui)rrrrrr�editor)�clsrrr	�
setUpClasss
zAutoCompleteTest.setUpClasscCs#|`|`|jj�|`dS)N)rrrZdestroy)rrrr	�
tearDownClass s
zAutoCompleteTest.tearDownClasscCs/|jjjdd�tj|j�|_dS)Nz1.0�end)rr�delete�ac�AutoComplete�autocomplete)rrrr	�setUp&szAutoCompleteTest.setUpcCs|j|jj|j�dS)N)�assertEqualrZeditwinr)rrrr	�	test_init*szAutoCompleteTest.test_initcCs&|jj�}|j|tj�dS)N)r�_make_autocomplete_windowZassertIsInstance�acwr)rZtestwinrrr	�test_make_autocomplete_window-sz.AutoCompleteTest.test_make_autocomplete_windowcCs9|jj�|j_|jj�|j|jj�dS)N)rr!Zautocompletewindow�_remove_autocomplete_window�assertIsNone)rrrr	�test_remove_autocomplete_window1s
z0AutoCompleteTest.test_remove_autocomplete_windowcCs<t�}||j_|jjd�|j|jd�dS)N�eventTF)TFT)rr�open_completionsZforce_open_completions_eventr�args)r�o_csrrr	�!test_force_open_completions_event7s	z2AutoCompleteTest.test_force_open_completions_eventcCs�|j}|j}|jj}t�}||_|d�||jd�|jjdd�|d�||jd	�|jjdd�|jjdd�|d�||jd
�dS)Nr'z1.0zre.F�rz"./Lib/�)FFFr,)FFFr-)	rrZtry_open_completions_eventrZ_open_completions_laterr)r�insertr)r�EqualrZtrycompletionsZo_c_lrrr	�test_try_open_completions_event>s				


z0AutoCompleteTest.test_try_open_completions_eventcCs�|j}|j}tdd�}|j|j|��|`|jjdd�||jj|�d�|j�t	�}||_
||jj|�d�||jd�d|_||jj|�d�||jd�dS)	N�mc_stateTz1.0zre.�breakF)FTT)FTT)
rrrr%Zautocomplete_eventr1rr.r$rr(r)�result)rr/rZevr*rrr	�test_autocomplete_eventTs		
			z(AutoCompleteTest.test_autocomplete_eventcCsdS)Nr)rrrr	�test_open_completions_laternsz,AutoCompleteTest.test_open_completions_latercCsdS)Nr)rrrr	�test_delayed_open_completionsrsz.AutoCompleteTest.test_delayed_open_completionscCsdS)Nr)rrrr	�test_open_completionsxsz&AutoCompleteTest.test_open_completionscCsdS)Nr)rrrr	�test_fetch_completions}sz'AutoCompleteTest.test_fetch_completionscCsdS)Nr)rrrr	�test_get_entity�sz AutoCompleteTest.test_get_entityN)rrr
�classmethodrrrr r#r&r+r0r4r5r6r7r8r9rrrr	rsr�__main__�	verbosityr-)ZunittestZtest.supportrZtkinterrrZidlelib.AutoCompleterrZidlelib.AutoCompleteWindowrr"Zidlelib.idle_test.mock_idlerZidlelib.idle_test.mock_tkrrZTestCaserr�mainrrrr	�<module>s	t

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