ó {fc@sÒddlZddlmZddlmZmZddljZddl j Z ddl m Z ddlmZddd„ƒYZ ddd „ƒYZd ejfd „ƒYZed krÎejd dƒndS(iÿÿÿÿN(trequires(tTktText(tFunc(tEventtAutoCompleteWindowcBseZd„ZRS(cCsdS(N((((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pytcomplete s(t__name__t __module__R(((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyR st DummyEditwincBseZd„ZRS(cCs1||_||_d|_d|_t|_dS(Ni(trootttextt indentwidthttabwidthtTruetcontext_use_ps1(tselfR R ((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyt__init__s     (RRR(((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyR stAutoCompleteTestcBs’eZed„ƒZed„ƒZd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „Z d „Z d „Zd „Zd „ZRS(cCsDtdƒtƒ|_t|jƒ|_t|j|jƒ|_dS(Ntgui(RRR RR R teditor(tcls((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyt setUpClasss  cCs#|`|`|jjƒ|`dS(N(RR R tdestroy(R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyt tearDownClass s  cCs/|jjjddƒtj|jƒ|_dS(Ns1.0tend(RR tdeletetact AutoCompletet autocomplete(R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pytsetUp&scCs|j|jj|jƒdS(N(t assertEqualRteditwinR(R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyt test_init*scCs&|jjƒ}|j|tjƒdS(N(Rt_make_autocomplete_windowtassertIsInstancetacwR(Rttestwin((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_make_autocomplete_window-scCs9|jjƒ|j_|jjƒ|j|jjƒdS(N(RR"tautocompletewindowt_remove_autocomplete_windowt assertIsNone(R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_remove_autocomplete_window1s cCsEtƒ}||j_|jjdƒ|j|jtttfƒdS(Ntevent(RRtopen_completionstforce_open_completions_eventRtargsRtFalse(Rto_cs((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyt!test_force_open_completions_event7s  cCsÓ|j}|j}|jj}tƒ}||_|dƒ||jdƒ|jjddƒ|dƒ||jt t t dfƒ|jj ddƒ|jjddƒ|dƒ||jt t t dfƒdS(NR+s1.0sre.iRs"./Lib/i( RRttry_open_completions_eventRt_open_completions_laterR.tNoneR tinsertR/R(RtEqualRttrycompletionsto_c_l((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_try_open_completions_event>s        cCsö|j}|j}tdtƒ}|j|j|ƒƒ|`|jjddƒ||jj|ƒdƒ|j ƒt ƒ}||_ ||jj|ƒdƒ||j tttfƒt|_||jj|ƒdƒ||j tttfƒdS(Ntmc_states1.0sre.tbreak(RRRRR)tautocomplete_eventR:R R5R(RR,R4R.R/tresult(RR6RtevR0((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_autocomplete_eventTs      cCsdS(N((R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_open_completions_laternscCsdS(N((R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_delayed_open_completionsrscCsdS(N((R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_open_completionsxscCsdS(N((R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_fetch_completions}scCsdS(N((R((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyttest_get_entity…s(RRt classmethodRRRR!R&R*R1R9R?R@RARBRCRD(((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyRs           t__main__t verbosityi(((tunittestttest.test_supportRtTkinterRRtidlelib.AutoCompleteRRtidlelib.AutoCompleteWindowRR$tidlelib.idle_test.mock_idleRtidlelib.idle_test.mock_tkRR tTestCaseRRtmain(((s;/usr/lib64/python2.7/idlelib/idle_test/test_autocomplete.pyts  t