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_editmenu.cpython-37.opt-2.pyc
B

!��g
�@sfddlmZed�ddlZddlmZddlZddlmZGdd�dej�Z	e
dkrbejd	d
�dS)�)�requiresZguiN)�ttk)�pyshellc@s<eZdZedd��Zedd��Zdd�Zdd�Zd	d
�ZdS)�	PasteTestcCsht��|_}|j��t�|�t�|�|_t�|�|_	t
�|�|_t�|�|_
|��|�d�dS)N�two)�tkZTk�rootZwithdrawrZ
fix_x11_pasteZText�textZEntry�entryr�tentryZSpinbox�spin�clipboard_clearZclipboard_append)�clsr�r�;/usr/local/lib/python3.7/idlelib/idle_test/test_editmenu.py�
setUpClasss

zPasteTest.setUpClasscCs2|`|`|`|j��|j��|j��|`dS)N)r	r
rrr
Zupdate_idletasksZdestroy)rrrr�
tearDownClasss



zPasteTest.tearDownClassc
Csn|j}xbdD]Z\}}|j||d��>|�dd�|�dd|�|�d�|�|�dd�|�WdQRXqWdS)N))�zonetwo
)Zselztwo
)�tag�ansz1.0�end�onez	<<Paste>>)r	�subTest�delete�insert�event_generate�assertEqual�get)�selfr	rrrrr�test_paste_text%s
zPasteTest.test_paste_textcCs�x�|j|jfD]p}xjdD]b\}}|j|||d��D|�dd�|�dd�|�d|�|�d�|�|��|�WdQRXqWqWdS)N))r�onetwo)rr)r
rrrrrz	<<Paste>>)	r
rrrrZselect_rangerrr)rr
rrrrr�test_paste_entry/s
zPasteTest.test_paste_entryc
Csv|j}xjdD]b\}}|j||d��F|�dd�|�dd�|�dd|�|�d�|�|��|�WdQRXqWdS)N))rr )rr)rrrrr�rangez	<<Paste>>)rrrrZ	selectionrrr)rrrrrrr�test_paste_spin<s
zPasteTest.test_paste_spinN)	�__name__�
__module__�__qualname__�classmethodrrrr!r#rrrrrs


r�__main__�)�	verbosity)Ztest.supportrZtkinterrrZunittestZidlelibrZTestCaserr$�mainrrrr�<module>s=