Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/alt/python37/lib64/python3.7/idlelib/idle_test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python37/lib64/python3.7/idlelib/idle_test/__pycache__/test_search.cpython-37.opt-1.pyc
B

� 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/python37/lib64/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?

ZeroDay Forums Mini