ó {fc@sÜdZddlZddlZddlmZddlmZddlmZ ddl m Z ddl 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_sett wait_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 tFalset assertFalseRRR 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   ( RRt classmethodRRRRRR (((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyR s    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 ƒ|j d|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(RtTestCaseR R"Rtmain(((s7/usr/lib64/python2.7/idlelib/idle_test/test_textview.pyts  )%