%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/idlelib/idle_test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyc

ó
Pêáac@sªdZddlZddlmZddlmZmZddlmZddd„ƒYZ	ddd	„ƒYZ
d
ejfd„ƒYZe
dkr¦ejd
dƒndS(sTest idlelib.ParenMatch.iÿÿÿÿN(trequires(tTktText(t
ParenMatchtMockcBs,eZd„Zd„Zd„Zd„ZRS(cOs
t|_dS(N(tFalsetcalled(tselftargstkwargs((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyt__init__scOs
t|_dS(N(tTrueR(RRR	((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyt__call__scOs
t|_dS(N(RR(RRR	((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyt
reset_mockscOsdS(N((RRR	((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pytafters(t__name__t
__module__R
RR
R(((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyR
s			tDummyEditwincBseZd„ZRS(cCs(||_d|_d|_t|_dS(Ni(ttexttindentwidthttabwidthRtcontext_use_ps1(RR((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyR
s			(RRR
(((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyRstParenMatchTestcBsSeZed„ƒZed„ƒZd„Zd„Zd„Zd„Zd„Z	RS(cCsMtdƒtƒ|_t|jƒ|_t|jƒ|_tƒ|j_dS(Ntgui(	RRtrootRRRteditwinRt
text_frame(tcls((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyt
setUpClass!s

cCs#|`|`|jjƒ|`dS(N(RRRtdestroy(R((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyt
tearDownClass)s
cCs|jjddƒdS(Ns1.0tend(Rtdelete(R((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyttearDown/scCsí|j}t|jƒ}|jdƒ|jddƒ|jdƒ|jd|jƒƒ|j|j	ddƒd
ƒ|jdd
ƒ|j
ƒ|jd|jƒƒ|j|j	ddƒdƒ|j
dƒ|j|j	ddƒdƒdS(s:
        Test ParenMatch with 'expression' style.
        t
expressiontinsertsdef foobar(a, btevents<<parenmatch-check-restore>>tparenRs1.10s1.15t)s1.16N(s1.10s1.15((s1.10s1.16(RRRt	set_styleR#tflash_paren_eventtassertInt
event_infotassertTupleEqualt
tag_prevranget
restore_eventtassertNotIntassertEqualtparen_closed_event(RRtpm((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyttest_paren_expression2s	



cCsÄ|j}t|jƒ}|jdƒ|jddƒ|jdƒ|jd|jƒƒ|j|j	ddƒdƒ|jdd
ƒ|j
ƒ|jd|jƒƒ|j|j	ddƒd
ƒdS(s7
        Test ParenMatch with 'default' style.
        tdefaultR#sdef foobar(a, bR$s<<parenmatch-check-restore>>R%Rs1.10s1.11R&N(s1.10s1.11((
RRRR'R#R(R)R*R+R,R-R.R/(RRR1((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyttest_paren_defaultIs	


cCs¤|j}t|jƒ}|jddƒ|j|jdƒƒ|jddƒ|j|jdƒƒ|j|jdƒƒ|jddƒ|j|jdƒƒdS(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((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyttest_paren_corner[s	cCslt|jƒ}tƒ|_|jdƒ|j|jjƒ|jjƒ|jdƒ|j|jjƒdS(Nii(	RRRR-thandle_restore_timert
assertTrueRR
tassertFalse(RR1((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyttest_handle_restore_timerns


(
RRtclassmethodRRR!R2R4R6R:(((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyRs				t__main__t	verbosityi(((t__doc__tunittestttest.test_supportRtTkinterRRtidlelib.ParenMatchRRRtTestCaseRRtmain(((s=/usr/local/lib/python2.7/idlelib/idle_test/test_parenmatch.pyt<module>s
Y

Zerion Mini Shell 1.0