� {fc@s�dZddlZddlmZmZddlmZejZ de fd��YZ ej Z ejZdejfd��YZed kr�ejd d d e�ndS( s.Unit tests for idlelib.configSectionNameDialogi����N(tVartMbox(tconfigSectionNameDialogtDummy_name_dialogcBs\eZejjZejjZejjZdgZe�Z dZ e Z d�Zd�ZRS(tusedcCsdS(N((tself((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyt grab_releasescCs t|_dS(N(tTruet destroyed(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pytdestroysN(t__name__t __module__t name_dialogtname_oktim_functOktCancelt used_namesRtnametNonetresulttFalseRRR (((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyRs      tConfigNameTestcBseeZe�Zed��Zed��Zd�Zd�Zd�Z d�Z d�Z d�Z RS(cCs tt_dS(N(Rtname_dialog_modulet tkMessageBox(tcls((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyt setUpClassscCs tt_dS(N(t orig_mboxRR(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyt tearDownClass"scCsV|jjjd�|j|jj�d�|jtjd�|jdtj�dS(Nt ts Name ErrortNo( tdialogRtsett assertEqualR t showerrorttitletassertIntmessage(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyttest_blank_name&scCsV|jjjd�|j|jj�d�|jtjd�|jdtj�dS(NRRs Name Errortuse( R RR!R"R R#R$R%R&(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyttest_used_name,scCsZ|jjjdd�|j|jj�d�|jtjd�|jdtj�dS(NtgoodiRs Name Errorstoo long( R RR!R"R R#R$R%R&(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyttest_long_name2scCsL|jjjd�dt_|j|jj�d�|jtjd�dS(Ns good sNo ErrorR*(R RR!R#R$R"R (R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyttest_good_name8s cCsYt|j_|jjjd�|jj�|j|jjd�|j|jj�dS(NR*( RR RRR!RR"Rt assertTrue(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyttest_ok>s   cCsFt|j_|jj�|j|jjd�|j|jj�dS(NR(RR RRR"RR-(R((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyt test_cancelEs  ( R R RR t classmethodRRR'R)R+R,R.R/(((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyRs      t__main__t verbosityitexit(t__doc__tunittesttidlelib.idle_test.mock_tkRRtidlelibRRtGetCfgSectionNameDialogR tobjectRRRR#tTestCaseRR tmainR(((s:/usr/lib64/python2.7/idlelib/idle_test/test_config_name.pyts    1