asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T  {fc@sdZddlZddlmZddlmZmZddlmZdddYZ ddd YZ d ej fd YZ e d krejd dndS(sTest idlelib.ParenMatch.iN(trequires(tTktText(t ParenMatchtMockcBs,eZdZdZdZdZRS(cOs t|_dS(N(tFalsetcalled(tselftargstkwargs((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt__init__ scOs t|_dS(N(tTrueR(RRR ((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt__call__scOs t|_dS(N(RR(RRR ((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt reset_mockscOsdS(N((RRR ((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pytafters(t__name__t __module__R R R R(((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyR s   t DummyEditwincBseZdZRS(cCs(||_d|_d|_t|_dS(Ni(ttextt indentwidthttabwidthR tcontext_use_ps1(RR((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyR s   (RRR (((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyRstParenMatchTestcBsSeZedZedZdZdZdZdZdZ RS(cCsMtdt|_t|j|_t|j|_t|j_dS(Ntgui( RRtrootRRRteditwinRt text_frame(tcls((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt setUpClass!s   cCs#|`|`|jj|`dS(N(RRRtdestroy(R((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt tearDownClass)s  cCs|jjdddS(Ns1.0tend(Rtdelete(R((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyttearDown/scCs|j}t|j}|jd|jdd|jd|jd|j|j|j ddd |jdd |j |j d|j|j |j ddd|j d|j|j dddd S(s: Test ParenMatch with 'expression' style. t expressiontinsertsdef foobar(a, btevents<>tparenRs1.10s1.15t)s1.16N(s1.10s1.15((s1.10s1.16(RRRt set_styleR#tflash_paren_eventtassertInt event_infotassertTupleEqualt tag_prevranget restore_eventt assertNotInt assertEqualtparen_closed_event(RRtpm((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyttest_paren_expression2s     cCs|j}t|j}|jd|jdd|jd|jd|j|j|j ddd |jdd |j |j d|j|j |j ddd d S(s7 Test ParenMatch with 'default' style. tdefaultR#sdef foobar(a, bR$s<>R%Rs1.10s1.11R&N(s1.10s1.11(( RRRR'R#R(R)R*R+R,R-R.R/(RRR1((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyttest_paren_defaultIs    cCs|j}t|j}|jdd|j|jd|jdd|j|jd|j|jd|jdd|j|jddS(s Test corner cases in flash_paren_event and paren_closed_event. These cases force conditional expression and alternate paths. R#s# this is a commen)R$s defs a, *arg)N(RRRR#t assertIsNoneR0R((RRR1((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyttest_paren_corner[s cCslt|j}t|_|jd|j|jj|jj|jd|j|jjdS(Nii( RRRR-thandle_restore_timert assertTrueRR t assertFalse(RR1((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyttest_handle_restore_timerns    ( RRt classmethodRRR!R2R4R6R:(((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyRs    t__main__t verbosityi(((t__doc__tunittestttest.test_supportRtTkinterRRtidlelib.ParenMatchRRRtTestCaseRRtmain(((s9/usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyts  Y