ó |G_Tc@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_dialogcBsSeZejjZejjZejjZdgZeƒZ dZ e Z d„ZRS(tusedcCs t|_dS(N(tTruet destroyed(tself((s>/usr/local/lib/python2.7/idlelib/idle_test/test_config_name.pytdestroysN(t__name__t __module__t name_dialogtname_oktim_functOktCancelt used_namesRtnametNonetresulttFalseRR(((s>/usr/local/lib/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/local/lib/python2.7/idlelib/idle_test/test_config_name.pyt setUpClassscCs tt_dS(N(t orig_mboxRR(R((s>/usr/local/lib/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/local/lib/python2.7/idlelib/idle_test/test_config_name.pyttest_blank_name$scCsV|jjjdƒ|j|jjƒdƒ|jtjdƒ|jdtjƒdS(NRRs Name Errortuse( RRR R!R R"R#R$R%(R((s>/usr/local/lib/python2.7/idlelib/idle_test/test_config_name.pyttest_used_name*scCsZ|jjjddƒ|j|jjƒdƒ|jtjdƒ|jdtjƒdS(NtgoodiRs Name Errorstoo long( RRR R!R R"R#R$R%(R((s>/usr/local/lib/python2.7/idlelib/idle_test/test_config_name.pyttest_long_name0scCsL|jjjdƒdt_|j|jjƒdƒ|jtjdƒdS(Ns good sNo ErrorR)(RRR R"R#R!R (R((s>/usr/local/lib/python2.7/idlelib/idle_test/test_config_name.pyttest_good_name6s cCsYt|j_|jjjdƒ|jjƒ|j|jjdƒ|j|jjƒdS(NR)( RRRRR RR!Rt assertTrue(R((s>/usr/local/lib/python2.7/idlelib/idle_test/test_config_name.pyttest_ok<s   cCsFt|j_|jjƒ|j|jjdƒ|j|jjƒdS(NR(RRRRR!RR,(R((s>/usr/local/lib/python2.7/idlelib/idle_test/test_config_name.pyt test_cancelCs  ( R R RRt classmethodRRR&R(R*R+R-R.(((s>/usr/local/lib/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/local/lib/python2.7/idlelib/idle_test/test_config_name.pyts    1