AlkantarClanX12

Your IP : 18.116.49.243


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_textview.pyc

�
^
bc@s�dZddlZddlZddlmZddlmZddlmZ	ddl
mZddlm
Z
de	jfd	��YZd
ejfd��YZdejfd
��YZedkr�ejdd�ndS(s8Test the functions and main class method of textView.py.i����N(trequires(tTk(ttextView(tFunc(tMboxtTVcBs#eZe�Ze�Ze�ZRS((t__name__t
__module__Rt	transienttgrab_settwait_window(((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyRs		ttextviewClassTestcBsJeZed��Zed��Zd�Zd�Zd�Zd�ZRS(cCs'td�t�|_|jj�dS(Ntgui(RRtroottwithdraw(tcls((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyt
setUpClasss
cCs|jj�|`dS(N(R
tdestroy(R((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyt
tearDownClasss
cCs+tjj�tjj�tjj�dS(N(RRt__init__R	R
(tself((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pytsetUps

cCs\t|jdd�}|jtjj�|jtjj�|jtjj�|j�dS(NtTitles	test text(RR
t
assertTrueRtcalledR	R
tOk(Rtview((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyttest_init_modal#s
cCsbt|jdddt�}|jtjj�|jtjj�|jtjj�|j�dS(NRs	test texttmodal(	RR
tFalsetassertFalseRRR	R
R(RR((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyttest_init_nonmodal*s
cCsXt|jdddt�}t�|_|j�|j|jj�|`|j�dS(NRs	test textR(RR
RRRRRR(RR((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyttest_ok1s
(	RRtclassmethodRRRRRR (((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyRs			tViewFunctionTestcBs8eZed��Zed��Zd�Zd�ZRS(cCs<td�t�|_|jj�tj|_tt_dS(NR(RRR
RttvttkMessageBoxt	orig_mboxR(R((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyR<s


cCs)|jj�|`|jt_|`dS(N(R
RR%R#R$(R((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyRDs
cCs?tj|jdddt�}|j|tj�|j�dS(NRs	test textR(R#t	view_textR
RtassertIsInstancet
TextViewerR(RR((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyttest_view_textKscCs�tjjt�}tjj|d�}tj|jd|dt�}|j	|tj
�|jd|jj
dd��|j�tjj|d�}tj|jd|dt�}|j|�dS(Nstest_textview.pyRRtTests1.0s1.ends../notthere.py(tostpathtdirnamet__file__tjoinR#t	view_fileR
RR'R(tassertInRtgetRtassertIsNone(Rttest_dirttestfileR((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyttest_view_fileQs
(RRR!RRR)R6(((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyR":s	t__main__t	verbosityi(t__doc__tunittestR+ttest.test_supportRtTkinterRtidlelibRR#tidlelib.idle_test.mock_idleRtidlelib.idle_test.mock_tkRR(RtTestCaseRR"Rtmain(((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_textview.pyt<module>s)%