File "test_idlehistory.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyc
File size: 8.28 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


V~gc@sddlZddlmZddlZddlmZddlmZddl	m
Z
ddlmZdZ
dZdejfd	YZd
ddYZdejfd
YZedkrejddddndS(iN(trequires(tText(tHistory(tidleConfsa = 7sb = at	StoreTestcBsJeZdZedZdZdZdZdZdZ	RS(s7Tests History.__init__ and History.store with mock TextcCs"t|_t|j|_dS(N(tmkTextttextRthistory(tcls((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt
setUpClassscCs#|jjddg|j_dS(Ns1.0tend(RtdeleteR(tself((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttearDownscCs|j|jj|j|j|jjg|j|jj|j|jj|j|jjtj	ddddddS(NtmainRtcyclicitbool(
tassertIsRRtassertEqualtassertIsNonetprefixtpointerRRt	GetOption(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt	test_initscCsP|jjd|j|jjg|jjd|j|jjgdS(Ntas  a  (RtstoreR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_store_short!scCs|jjt|j|jjtg|jjt|j|jjttg|jjt|j|jjttgdS(N(RRtline1Rtline2(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_store_dup'scCsRt|j_d|j_|jjt|j|jj|j|jjdS(Ni(RRRRRRR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_store_reset/s
(
t__name__t
__module__t__doc__tclassmethodR	R
RRRR(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR
s				tTextWrappercBs#eZdZdZdZRS(cCstd||_t|_dS(Ntmaster(ttkTextRtFalset_bell(RR$((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt__init__8scCst|j|S(N(tgetattrR(Rtname((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt__getattr__;scCs
t|_dS(N(tTrueR'(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pytbell=s(RR R(R+R-(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR#7s		t	FetchTestcBseZdZedZdZedZedZdZ	dZ
dZdZd	Z
d
ZdZdZd
ZRS(s-Test History.fetch with wrapped tk.Text.
    cCs*tdtj|_|jjdS(Ntgui(RttktTktroottwithdraw(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR	Cs
cCskt|j|_}|jdd|jdd|jddt||_tt	g|j_dS(Ns1.0s>>> tiomarks1.4tleft(
R#R2Rtinserttmark_settmark_gravityRRRR(RR((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pytsetUpIscCs|jj|`dS(N(R2tdestroy(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt
tearDownClassQs
cCs|j}|j||j}||jjdd|||jj||rct|j_n||j|||j|||jj	dddddS(NR4send-1cR6s==i(
RtfetchRRtgetR'R&RRtcompare(RtreversetlineRtindexR-RtEqual((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt
fetch_testVs	
	cCsRd}|j}|tt|d|tt|d|t|dddtdS(NtiiR-(RCR,RRtNone(RRttest((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_prev_cyclicfs
	cCsRd}|j}|tt|d|tt|d|t|dddtdS(NRDiiR-(RCR&RRRER,(RRRF((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_next_cyclicms
	cCsOd}|jjd||jtt|d|jt|dddtdS(NRR4iR-(RR6RCR,RRE(RR((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_prev_prefixuscCsOd}|jjd||jtt|d|jt|dddtdS(NRR4iR-(RR6RCR&RRER,(RR((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_next_prefix{scCs^d}t|j_|j}|tt|d|tt|d|tt|ddtdS(NRDiiR-(R&RRRCR,RR(RRRF((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_prev_noncyclics	cCs}d}t|j_|j}|t|dddt|tt|d|t|dddt|t|dddtdS(NRDR-i(R&RRRCRER,R(RRRF((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_next_noncyclics	cCsF|jjdt|jjdd|jttdddtdS(NR?R6R4R-(RR<R,RR7RCRRE(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_cursor_movescCsS|jjdt|jjdd|jjdd|jttdddS(NR?R4R6sa =i(RR<R,RRR6RCR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_editscCsP|jjd|j|jjd|jjd|j|jjddS(Nsdummy eventi(Rthistory_prevRRthistory_nextRE(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_history_prev_nexts(RR R!R"R	R9R;R&RCRGRHRIRJRKRLRMRNRQ(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR.@s										t__main__t	verbosityitexit((tunittestttest.test_supportRtTkinterR0RR%tidlelib.idle_test.mock_tkRtidlelib.IdleHistoryRtidlelib.configHandlerRRRtTestCaseRR#R.RR(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt<module>s*	g