Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python27/lib64/python2.7/idlelib/idle_test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyc
�
�V~gc@s�dZddlmZddlZddlmZddlmZmZm	Z	ddl
mZdejfd��YZ
d	ejfd
��YZedkr�ejdd
�ndS(s5Unittest for idlelib.WidgetRedirector

100% coverage
i����(trequiresN(tFunc(tTktTexttTclError(tWidgetRedirectort
InitCloseTestcBs8eZed��Zed��Zd�Zd�ZRS(cCs9td�t�|_|jj�t|j�|_dS(Ntgui(RRtroottwithdrawRttext(tcls((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt
setUpClasss

cCs|`|jj�|`dS(N(R
Rtdestroy(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt
tearDownClasss
cCsbt|j�}|j|j|j�|j|j|jj�|jtt|j�|j�dS(N(RR
tassertEqualtwidgetttktassertRaisesRtclose(tselftredir((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt	test_inits
cCsYt|j�}|jdt�|j�|j|ji�|jt|jd��dS(NtinsertR(	RR
tregisterRRRt_operationstassertFalsethasattr(RR((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt
test_close"s

(t__name__t
__module__tclassmethodRRRR(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyRs	tWidgetRedirectorTestcBs�eZed��Zed��Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�ZRS(
cCs9td�t�|_|jj�t|j�|_dS(NR(RRRR	RR
(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyR,s

cCs|`|jj�|`dS(N(R
RR
(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyR3s
cCsPt|j�|_t�|_|jjd|j�|_|jjdd�dS(NRtasdf(RR
RRtfuncRtorig_insertR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pytsetUp9scCs$|jjdd�|jj�dS(Ns1.0tend(R
tdeleteRR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttearDown?scCs6|jdt|j��|jdt|j��dS(Nt
RedirectortOriginal(tassertIntreprRR#(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt	test_reprCscCs~|j|jjdd�d�|j|jjd�|jd|jj�|jd|jj�|j|jj	|j�dS(Ns1.0R%s
RR!(RR!(
RR
tgetR"targsR*RRt__dict__R(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt
test_registerGs
cCsh|j|jjd�|j|jj|jjj�|jdd�|j|jjdd�d�dS(NRR!s1.0R%sasdf
(RR#t	operationttk_callR
RtcallR-(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_original_commandNscCsh|j|jjd��|j|jjd�|j�|jd|jj�|jd|jj�dS(Nsinvalid operation nameR(	tassertIsNoneRt
unregisterRR"tassertNotInRR
R/(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_unregisterTscCs,|j`|j|jjd�|j�dS(NR(R
RRRR6R"(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_unregister_no_attributeZs	cCsG|jjt�|j|jjdt��|j|jjd�dS(NRi(	R"t__init__tTruet
assertTrueRtdispatchtFalseRR.(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_dispatch_intercept^scCsU|jdd�|j|jjddd�d�|j|jjdd�d�dS(NRR!R&s1.0R%ts
(R#RRR=R
R-(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_dispatch_bypasscs"cCsR|jjt��|j|jjdt�d�|j|jjd�d�dS(NRR@tinvalid(R"R:RRRR=R>(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_dispatch_erroriscCs�|jj|jjdd�|j|jjd�|j|jjdd�d�|jjt	��|j|jj|jjdd�d�dS(	NRthellos1.0R%s
tbooR@(RD(
RR3R
t_wRR"R.R-R:R(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_command_dispatchns
(RRRRRR$R'R,R0R4R8R9R?RARCRG(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyR *s										t__main__t	verbosityi(t__doc__ttest.test_supportRtunittesttidlelib.idle_test.mock_idleRtTkinterRRRtidlelib.WidgetRedirectorRtTestCaseRR Rtmain(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt<module>sQ
Name
Size
Permissions
Options
README.txt
5.363 KB
-rw-r--r--
__init__.py
0.635 KB
-rw-r--r--
__init__.pyc
0.919 KB
-rw-r--r--
__init__.pyo
0.919 KB
-rw-r--r--
htest.py
13.456 KB
-rw-r--r--
htest.pyc
12.355 KB
-rw-r--r--
htest.pyo
12.355 KB
-rw-r--r--
mock_idle.py
1.56 KB
-rw-r--r--
mock_idle.pyc
2.938 KB
-rw-r--r--
mock_idle.pyo
2.938 KB
-rw-r--r--
mock_tk.py
11.303 KB
-rw-r--r--
mock_tk.pyc
12.415 KB
-rw-r--r--
mock_tk.pyo
12.415 KB
-rw-r--r--
test_autocomplete.py
4.807 KB
-rw-r--r--
test_autocomplete.pyc
5.977 KB
-rw-r--r--
test_autocomplete.pyo
5.977 KB
-rw-r--r--
test_autoexpand.py
4.025 KB
-rw-r--r--
test_autoexpand.pyc
4.846 KB
-rw-r--r--
test_autoexpand.pyo
4.846 KB
-rw-r--r--
test_calltips.py
6.973 KB
-rw-r--r--
test_calltips.pyc
12.469 KB
-rw-r--r--
test_calltips.pyo
12.469 KB
-rw-r--r--
test_config_name.py
2.414 KB
-rw-r--r--
test_config_name.pyc
4.083 KB
-rw-r--r--
test_config_name.pyo
4.083 KB
-rw-r--r--
test_configdialog.py
0.764 KB
-rw-r--r--
test_configdialog.pyc
1.68 KB
-rw-r--r--
test_configdialog.pyo
1.68 KB
-rw-r--r--
test_delegator.py
1.264 KB
-rw-r--r--
test_delegator.pyc
1.326 KB
-rw-r--r--
test_delegator.pyo
1.326 KB
-rw-r--r--
test_editmenu.py
3.093 KB
-rw-r--r--
test_editmenu.pyc
4.462 KB
-rw-r--r--
test_editmenu.pyo
4.462 KB
-rw-r--r--
test_formatparagraph.py
14.008 KB
-rw-r--r--
test_formatparagraph.pyc
14.363 KB
-rw-r--r--
test_formatparagraph.pyo
14.363 KB
-rw-r--r--
test_grep.py
2.697 KB
-rw-r--r--
test_grep.pyc
3.812 KB
-rw-r--r--
test_grep.pyo
3.812 KB
-rw-r--r--
test_helpabout.py
1.573 KB
-rw-r--r--
test_helpabout.pyc
2.384 KB
-rw-r--r--
test_helpabout.pyo
2.384 KB
-rw-r--r--
test_hyperparser.py
5.551 KB
-rw-r--r--
test_hyperparser.pyc
6.779 KB
-rw-r--r--
test_hyperparser.pyo
6.779 KB
-rw-r--r--
test_idlehistory.py
5.366 KB
-rw-r--r--
test_idlehistory.pyc
8.281 KB
-rw-r--r--
test_idlehistory.pyo
8.281 KB
-rw-r--r--
test_io.py
9.282 KB
-rw-r--r--
test_io.pyc
11.669 KB
-rw-r--r--
test_io.pyo
11.669 KB
-rw-r--r--
test_parenmatch.py
3.732 KB
-rw-r--r--
test_parenmatch.pyc
5.531 KB
-rw-r--r--
test_parenmatch.pyo
5.531 KB
-rw-r--r--
test_pathbrowser.py
0.918 KB
-rw-r--r--
test_pathbrowser.pyc
1.501 KB
-rw-r--r--
test_pathbrowser.pyo
1.501 KB
-rw-r--r--
test_rstrip.py
1.575 KB
-rw-r--r--
test_rstrip.pyc
1.782 KB
-rw-r--r--
test_rstrip.pyo
1.782 KB
-rw-r--r--
test_searchdialogbase.py
5.726 KB
-rw-r--r--
test_searchdialogbase.pyc
6.87 KB
-rw-r--r--
test_searchdialogbase.pyo
6.87 KB
-rw-r--r--
test_searchengine.py
11.218 KB
-rw-r--r--
test_searchengine.pyc
12.81 KB
-rw-r--r--
test_searchengine.pyo
12.81 KB
-rw-r--r--
test_text.py
6.586 KB
-rw-r--r--
test_text.pyc
8.198 KB
-rw-r--r--
test_text.pyo
8.198 KB
-rw-r--r--
test_textview.py
2.736 KB
-rw-r--r--
test_textview.pyc
4.603 KB
-rw-r--r--
test_textview.pyo
4.603 KB
-rw-r--r--
test_warning.py
2.692 KB
-rw-r--r--
test_warning.pyc
3.311 KB
-rw-r--r--
test_warning.pyo
3.311 KB
-rw-r--r--
test_widgetredir.py
4.079 KB
-rw-r--r--
test_widgetredir.pyc
6.488 KB
-rw-r--r--
test_widgetredir.pyo
6.488 KB
-rw-r--r--