Your IP : 3.135.202.168


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_search.cpython-36.pyc

3

� f�	�@sxdZddlmZddlZddlmZed�ddlmZmZm	Z	ddlm
Z
Gdd	�d	ej�Ze
d
krtejddd�dS)
zTest search, coverage 69%.�)�searchN)�requiresZgui)�Tk�Text�
BooleanVar)�searchenginec@s<eZdZedd��Zedd��Zdd�Zdd�Zd	d
�ZdS)�SearchDialogTestcCst�|_dS)N)r�root)�cls�r�B/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_search.py�
setUpClassszSearchDialogTest.setUpClasscCs|jj�|`dS)N)r	Zdestroy)r
rrr�
tearDownClasss
zSearchDialogTest.tearDownClasscCsJtj|j�|_tj|j|j�|_dd�|j_t|j�|_	|j	j
dd�dS)NcSsdS)Nrrrrr�<lambda>sz(SearchDialogTest.setUp.<locals>.<lambda>z1.0zHello World!)rZSearchEnginer	�enginerZSearchDialog�dialog�bellr�text�insert)�selfrrr�setUps
zSearchDialogTest.setUpcCs�|j}|jjd�|j|jj|��dd�|j_|jjd�|j|jj|��|jjd�|j|jj|��|jjd�|j|jj|��|jjd�|j|jj|��t|j	d�|j_
|jjd	�|j|jj|��dS)
N�cSsdS)Nrrrrrr(sz2SearchDialogTest.test_find_again.<locals>.<lambda>ZHelloZGoodbyezWorld!zHello World!Tz
W[aeiouy]r)rrZsetpatZassertFalserZ
find_againr�
assertTruerr	Zrevar)rrrrr�test_find_again"sz SearchDialogTest.test_find_againcCs�|j}|jjdd�|jddd�|j|jj|��|jddd�|jddd�|j|jj|��|jddd�|jddd�|j|jj|��|jdd�dS)	Nz2.0zHello World!Zselz1.0z1.4�endz1.6z1.11)rrZtag_addrrZfind_selectionZ
tag_remove�delete)rrrrr�test_find_selection;sz$SearchDialogTest.test_find_selectionN)	�__name__�
__module__�__qualname__�classmethodr
rrrrrrrrrs
r�__main__�)�	verbosity�exit)�__doc__ZidlelibrZunittestZtest.supportrZtkinterrrrrZTestCaserr�mainrrrr�<module>s?

?>