ó {fc@sŠdZddlmZddlmZddlmZddlm Z ddl Z ej Z ddd„ƒYZ d e jfd „ƒYZed krĶe jd d ƒndS(s$Test idlelib.help_about. Coverage: iĸĸĸĸ(t aboutDialog(ttextView(tFunc(tMboxNtDummy_about_dialogcBs8eZejjZejjZejjZ ej jZ RS(( t__name__t __module__tAbouttShowIDLECreditstim_funct idle_creditst ShowIDLEAboutt idle_readmet ShowIDLENEWSt idle_newstdisplay_file_text(((s8/usr/lib64/python2.7/idlelib/idle_test/test_helpabout.pyR s   tDisplayFileTestcBs>eZdZeƒZed„ƒZed„ƒZd„ZRS(s4Test that .txt files are found and properly decoded.cCsXtj|_tj|_tƒ|_tƒ|_|jt_|jt_t ƒ|_ dS(N( ttextviewt tkMessageBoxt orig_mboxt view_textt orig_viewRtmboxRtviewRR(tcls((s8/usr/lib64/python2.7/idlelib/idle_test/test_helpabout.pyt setUpClasss      cCs|jt_|jjt_dS(N(RRRRR R(R((s8/usr/lib64/python2.7/idlelib/idle_test/test_helpabout.pyt tearDownClass#s cCsxz|jj|jj|jjfD]W}d|jj_t|j_ |ƒ|j |jjjdƒ|j |jj t ƒq"WdS(Nt( tdialogR R RRt showerrortmessagetFalseRtcalledt assertEqualtTrue(tselfthandler((s8/usr/lib64/python2.7/idlelib/idle_test/test_helpabout.pyttest_file_isplay(s   ( RRt__doc__RRt classmethodRRR%(((s8/usr/lib64/python2.7/idlelib/idle_test/test_helpabout.pyRs   t__main__t verbosityi((R&tidlelibRt help_aboutRRtidlelib.idle_test.mock_idleRtidlelib.idle_test.mock_tkRtunittestt AboutDialogRRtTestCaseRRtmain(((s8/usr/lib64/python2.7/idlelib/idle_test/test_helpabout.pyts