config root man

Current Path : /usr/local/lib/python2.5/bsddb/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/bsddb/test/test_recno.pyc

³ò
h”Rc@sédZddkZddkZddkZddkZddklZddkZddklZyddk	l
Z
Wn#ej
oddkl
Z
nXdZ
deifd„ƒYZd	„Zed
joeiddƒndS(
s%TestCases for exercising a Recno DB.
iÿÿÿÿN(tpprint(tverbose(tdbt4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZtSimpleRecnoTestCasecBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCstiƒ|_dS(N(ttempfiletmktemptfilename(tself((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pytsetUpscCsJyti|iƒWn/tj
o#}|itijo‚qFnXdS(N(tostremoveRtOSErrorterrnotEEXIST(Rte((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttearDowns
c
Cs tiƒ}|idƒ}|i|ƒ|i|ititiƒxdtD]\}|i|dƒ}t	|ƒt	dƒjpt
‚|djpt
‚to|GqKqKWtoHn|iƒ}tot
|ƒnxxtdt|ƒdƒD]]}||}to	|GHnt	|ƒt	dƒjpt
‚||i|ƒjpt
‚qòWy|d}WnCtij
o4}|dtijpt
‚to	|GHq´nX|idƒy|idƒWntij
o	}nX|idƒy|d}Wntj
onX|idƒy|idƒ}Wn0tij
o!}|o|id	ƒqxnX|djpt
‚|iƒ}to	|GHnt	|ƒt	gƒjpt
‚t	|dƒt	d
ƒjpt
‚t|ƒt|ƒjpt
‚|iƒ}	tot
|	ƒnt	|	ƒt	gƒjpt
‚t	|	dƒt	dƒjpt
‚t|	dƒdjpt
‚t	|	ddƒt	d
ƒjpt
‚t	|	ddƒt	dƒjpt
‚t|	ƒt|ƒjpt
‚|idƒpt
‚|d=|idƒpt
‚|idƒ|idƒpt
‚|id
ddƒ}|ddjpt
d|‚to	|GHn|iƒ}
to	|
GHn|iƒ}|iƒ}x(|o to	|GHn|i ƒ}qÂW|i!dƒ|i"ƒ}to	|GHn|i#ddti$ƒ|i!dƒ|i"ƒ}|djpt
‚to	|GHn|i%dƒ}to	|GHn|i%dƒ}|djpt
‚to	|GHn|i&ƒ|i&ƒtiƒ}|i|iƒ|iƒ}d|d<|ddjpt
‚y|d}Wntj
onX|idƒy|idƒWn[ti'j
oL}|o|idƒqÎ|dti(jpt
‚to	|GHqÎnX|p|idƒn|i!dƒ}x(|o to	|GHn|i ƒ}qàW|i&ƒ|i&ƒdS(Nii<iitsexpected exceptions(has_key did not raise a proper exceptionidsunexpected exceptioni{ii
itzswas %ri2iÿÿÿÿsa replacement recordii?Bs
way out thereics$unexpected DBKeyEmptyError exceptioni(((i2sa replacement record()RtDBtset_get_returns_nonetopenRtDB_RECNOt	DB_CREATEtletterstappendttypetAssertionErrorRtstatRtrangetlentgettDBInvalidArgErrortEINVALtfailthas_keytDBErrortKeyErrortDBNotFoundErrortNonetkeystitemstdeletetget_bothtfdtcursortfirsttnexttsettcurrenttputt
DB_CURRENTt	set_rangetclosetDBKeyEmptyErrortDB_KEYEMPTY(
Rtdtget_returns_nonetxtrecnoRtdatatvalR(R)R,tctrec((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttest01_basic#sþ
 
	 !


	 $  $(( 
			
	
			



	
cCstiitiƒdƒ}tii|dƒ}tii|ƒpti|ƒnt|dƒ}|iƒt	i
ƒ}|idƒ|idƒ|i|ƒ|i|i
t	it	iƒdiƒ}x|D]}|i|ƒqÏW|iƒ|iƒt|dƒiƒ}|iƒ}to|GH|GH|idƒGHn|idƒ|jpt‚t	i
ƒ}|i|ƒ|i|i
t	iƒd|d	<d
|d<|iƒ|iƒt|dƒiƒ}|iƒ}to|GH|idƒGHn|idƒdiƒjpt‚d
S(s
        A Recno file that is given a "backing source file" is essentially a
        simple ASCII file.  Normally each record is delimited by 
 and so is
        just a line in the file, but you can set a different record delimiter
        if needed.
        tdb_homestest_recno.txttwi
s
s,The quick brown fox jumped over the lazy dogtrs
reddish-brownitcomatoseis8The quick reddish-brown fox jumped over the comatose dogN(R
tpathtjoinRt
gettempdirtisdirtmkdirRR5RRtset_re_delimt
set_re_sourceRRRtsplitRtsynctreadtstripRR(RthomeDirtsourcetfR8R<tdatumttext((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttest02_WithSourceÇsL










cCsEtiƒ}|idƒ|idƒ|idƒ|i|ititiƒxtD]}|i	|dƒqVW|i	ddƒy|i	ddƒWnCti
j
o4}|dtijpt‚t
o	|GHqênX|id	ƒ|iƒ}|iƒ}x(|o t
o	|GHn|iƒ}qW|iƒ|iƒdS(
Ni(t-i-i#t.tbadiisexpected exception(RRt
set_re_lent
set_re_padRRRRRRR R!RRR"R-R.R/R5(RR8R:R=R>R?((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyttest03_FixedLengths2



	
(t__name__t
__module__R	RR@RUR[(((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyRs
			¤	9cCs
titƒS(N(tunittestt	makeSuiteR(((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pyt
test_suite"st__main__tdefaultTestR`(t__doc__R
tsysR
RRR^ttest_allRtbsddb3RtImportErrortbsddbRtTestCaseRR`R\tmain(((s1/usr/local/lib/python2.5/bsddb/test/test_recno.pys<module>s"ÿ
	


Man Man