Your IP : 18.116.85.111


Current Path : /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/test_autocomplete.cpython-36.pyc

3

� f��@s�dZddlZddlmZddlmZmZddljZ	ddl
jZddl
mZddlmZGdd�d�ZGd	d
�d
ej�Zedkr�ejdd
�dS)z Test autocomplete, coverage 57%.�N)�requires)�Tk�Text)�Func)�Eventc@seZdZdd�ZdS)�DummyEditwincCs"||_||_d|_d|_d|_dS)N�T)�root�textZindentwidthZtabwidthZcontext_use_ps1)�selfr	r
�r�H/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_autocomplete.py�__init__s
zDummyEditwin.__init__N)�__name__�
__module__�__qualname__rrrrr
r
src@s�eZdZedd��Zedd��Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�ZdS)�AutoCompleteTestcCs0td�t�|_t|j�|_t|j|j�|_dS)NZgui)rrr	rr
r�editor)�clsrrr
�
setUpClassszAutoCompleteTest.setUpClasscCs|`|`|jj�|`dS)N)rr
r	Zdestroy)rrrr
�
tearDownClasss
zAutoCompleteTest.tearDownClasscCs"|jjjdd�tj|j�|_dS)Nz1.0�end)rr
�delete�acZAutoComplete�autocomplete)rrrr
�setUp%szAutoCompleteTest.setUpcCs|j|jj|j�dS)N)�assertEqualrZeditwinr)rrrr
�	test_init)szAutoCompleteTest.test_initcCs|jj�}|j|tj�dS)N)r�_make_autocomplete_windowZassertIsInstance�acwZAutoCompleteWindow)rZtestwinrrr
�test_make_autocomplete_window,s
z.AutoCompleteTest.test_make_autocomplete_windowcCs*|jj�|j_|jj�|j|jj�dS)N)rrZautocompletewindow�_remove_autocomplete_window�assertIsNone)rrrr
�test_remove_autocomplete_window0s
z0AutoCompleteTest.test_remove_autocomplete_windowcCs,t�}||j_|jjd�|j|jd�dS)N�eventTF)TFT)rr�open_completionsZforce_open_completions_eventr�args)r�o_csrrr
�!test_force_open_completions_event6s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_lrrr
�test_try_open_completions_event=sz0AutoCompleteTest.test_try_open_completions_eventcCs�|j}|j}tdd�}|j|j|��|`|jjdd�|j|j|��|jjdd�|jjdd�||jj|�d�|j	�t
�}||_||jj|�d�||jd	�d|_
||jj|�d�||jd
�dS)NT)�mc_statez1.0z        """Docstring.
    rzre.�breakF)FTT)FTT)rrrr"Zautocomplete_eventr.r
r+rr!rr%r&�result)rr,rZevr'rrr
�test_autocomplete_eventSs$
z(AutoCompleteTest.test_autocomplete_eventcCsdS)Nr)rrrr
�test_open_completions_laterrsz,AutoCompleteTest.test_open_completions_latercCsdS)Nr)rrrr
�test_delayed_open_completionsvsz.AutoCompleteTest.test_delayed_open_completionscCsdS)Nr)rrrr
�test_open_completions|sz&AutoCompleteTest.test_open_completionscCsdS)Nr)rrrr
�test_fetch_completions�sz'AutoCompleteTest.test_fetch_completionscCsdS)Nr)rrrr
�test_get_entity�sz AutoCompleteTest.test_get_entityN)rrr�classmethodrrrrr r#r(r-r1r2r3r4r5r6rrrr
rsr�__main__r*)�	verbosity)�__doc__ZunittestZtest.supportrZtkinterrrZidlelib.autocompleterrZidlelib.autocomplete_wZautocomplete_wrZidlelib.idle_test.mock_idlerZidlelib.idle_test.mock_tkrrZTestCaserr�mainrrrr
�<module>s

	y

?>