ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/lib64/python2.7/idlelib/idle_test/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyo

�
{fc@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((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt
setUpClasss

cCs|`|jj�|`dS(N(R
Rtdestroy(R((s:/usr/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((s:/usr/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((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt
test_close"s

(t__name__t
__module__tclassmethodRRRR(((s:/usr/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((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyR,s

cCs|`|jj�|`dS(N(R
RR
(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyR3s
cCsPt|j�|_t�|_|jjd|j�|_|jjdd�dS(NRtasdf(RR
RRtfuncRtorig_insertR(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pytsetUp9scCs$|jjdd�|jj�dS(Ns1.0tend(R
tdeleteRR(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttearDown?scCs6|jdt|j��|jdt|j��dS(Nt
RedirectortOriginal(tassertIntreprRR#(R((s:/usr/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((s:/usr/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((s:/usr/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((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_unregisterTscCs,|j`|j|jjd�|j�dS(NR(R
RRRR6R"(R((s:/usr/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((s:/usr/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((s:/usr/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((s:/usr/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((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyttest_command_dispatchns
(RRRRRR$R'R,R0R4R8R9R?RARCRG(((s:/usr/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(((s:/usr/lib64/python2.7/idlelib/idle_test/test_widgetredir.pyt<module>sQ

Zerion Mini Shell 1.0