AlkantarClanX12

Your IP : 3.15.143.18


Current Path : /opt/alt/python27/lib64/python2.7/idlelib/idle_test/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyo

�
^
bc@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