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