ok

Mini Shell

Direktori : /lib64/python2.7/idlelib/idle_test/
Upload File :
Current File : //lib64/python2.7/idlelib/idle_test/test_textview.pyc

�
{fc@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(((s7/usr/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((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyt
setUpClasss
cCs|jj�|`dS(N(R
tdestroy(R((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyt
tearDownClasss
cCs+tjj�tjj�tjj�dS(N(RRt__init__R	R
(tself((s7/usr/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((s7/usr/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((s7/usr/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((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyttest_ok1s
(	RRtclassmethodRRRRRR (((s7/usr/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((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyR<s


cCs)|jj�|`|jt_|`dS(N(R
RR%R#R$(R((s7/usr/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((s7/usr/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((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyttest_view_fileQs
(RRR!RRR)R6(((s7/usr/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(((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyt<module>s)%

Zerion Mini Shell 1.0