HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/idlelib/idle_test/__pycache__/test_search.cpython-37.pyc
B

!��g�	�@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�9/usr/local/lib/python3.7/idlelib/idle_test/test_search.py�
setUpClassszSearchDialogTest.setUpClasscCs|j��|`dS)N)r	Zdestroy)r
rrr�
tearDownClasss
zSearchDialogTest.tearDownClasscCsJt�|j�|_t�|j|j�|_dd�|j_t|j�|_	|j	�
dd�dS)NcSsdS)Nrrrrr�<lambda>�z(SearchDialogTest.setUp.<locals>.<lambda>z1.0zHello World!)rZSearchEnginer	�enginerZSearchDialog�dialog�bellr�text�insert)�selfrrr�setUps
zSearchDialogTest.setUpcCs�|j}|j�d�|�|j�|��dd�|j_|j�d�|�|j�|��|j�d�|�|j�|��|j�d�|�|j�|��|j�d�|�|j�|��t|j	d�|j_
|j�d	�|�|j�|��dS)
N�cSsdS)Nrrrrrr(rz2SearchDialogTest.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}|j�dd�|�ddd�|�|j�|��|�ddd�|�ddd�|�|j�|��|�ddd�|�ddd�|�|j�|��|�dd�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?