7ec@sdZddlmZddlmZddlmZddlm Z ddl Z ej Z dddYZ d e jfd YZed kre 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>eZdZeZedZedZdZRS(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 cCsxz|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