Your IP : 3.138.137.244


Current Path : /opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__/test_searchdialog.cpython-35.pyc



��Yfk	�@s�dZddlmZed�ddlZddlZddlmZddljZ	ddl
jZGdd�dej
�Zedkr�ejd	d
dd
�dS)z,Test SearchDialog class in SearchDialogue.py�)�requiresZguiN)�
BooleanVarc@sXeZdZedd��Zedd��Zdd�Zdd�Zd	d
�ZdS)�SearchDialogTestcCstj�|_dS)N)�tkZTk�root)�cls�r�H/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_searchdialog.py�
setUpClassszSearchDialogTest.setUpClasscCs|jj�|`dS)N)rZdestroy)rrrr	�
tearDownClasss
zSearchDialogTest.tearDownClasscCs\tj|j�|_tj|j|j�|_tj|j�|_	|j	j
dd�dS)Nz1.0zHello World!)�se�SearchEnginer�engine�sd�SearchDialog�dialogrZText�text�insert)�selfrrr	�setUpszSearchDialogTest.setUpcCs|j}|jjd�|j|jj|��|jjd�|j|jj|��|jjd�|j|jj|��|jjd�|j|jj|��|jjd�|j|jj|��t|jd�|j_	|jjd�|j|jj|��dS)N�ZHelloZGoodbyezWorld!zHello World!Tz
W[aeiouy]r)
rrZsetpatZassertFalserZ
find_again�
assertTruerrZrevar)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_removeZdelete)rrrrr	�test_find_selection;s	z$SearchDialogTest.test_find_selectionN)	�__name__�
__module__�__qualname__�classmethodr
rrrrrrrr	rs
r�__main__�	verbosity��exit)�__doc__Ztest.supportrZunittestZtkinterrrZidlelib.SearchEnginer
rZidlelib.SearchDialogrrZTestCaserr�mainrrrr	�<module>s
=

?>