� {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