KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/bsddb/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/bsddb/test/test_dbshelve.pyo
mς
‚=5Dc@sΣdZdkZdkZdkZdkZdkZdklZdkTdkZydk	l
Z
lZWn&ej
odk
l
Z
lZnXdklZdfd„ƒYZdeifd	„ƒYZd
efd„ƒYZdefd
„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd„Zedjoeid d!ƒndS("s*
TestCases for checking dbShelve objects.
N(spprint(t*(sdbsdbshelve(sverboset	DataClasscBstZd„Zd„ZRS(NcCstiƒ|_dS(N(trandomtselftvalue(R((t0/usr/lib64/python2.4/bsddb/test/test_dbshelve.pyt__init__scCst|i|ƒS(N(tcmpRRtother(RR((Rt__cmp__s(t__name__t
__module__RR	(((RRs	tDBShelveTestCasecBsPtZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(	NcCstiƒ|_|iƒdS(N(ttempfiletmktempRtfilenametdo_open(R((RtsetUp!scCs;|iƒyti|iƒWntij
onXdS(N(Rtdo_closetostremoveRterror(R((RttearDown%s

cCs–xtiD]„}d||d|<t|ƒ|d|<|gd|d|<tƒ}d||_t|ƒ|_|gd|_	||d|<q
WdS(Ni
tStItLtO(
tstringtletterstxtdtordRtinstRRR(RRR R((Rt
populateDB,s
	
cCsti|iƒ|_dS(N(tdbshelvetopenRRR(R((RR:scCs|iiƒdS(N(RRtclose(R((RR>scCsΓto dGddGHd|iiGHn|i|iƒ|iiƒ|iƒ|iƒ|i}
t	|
ƒ}|
iƒ}|
i
ƒ}|
iƒ}todG|GHdG|GHdG|GHn|
idƒ|
d	=g}xU|
iƒD]G}|
|}|i|ƒtod
||fGHn|i||ƒqήW|
iƒ}	|iƒ|	iƒ|
iƒ}x$|D]\}}|i||ƒq\W|
idƒ|iti|
idƒ|
id
ƒ|
iddƒdS(Ns
s-=isRunning %s.test01_basics...slength:skeys:sstats:tIAtOAs%s: %sisbad keyisnew keysnew data( tverboseRt	__class__R
R!RtsyncRRtlentltkeystktstattstfdtftdeletetvaluestkeyRtappendtcheckrectdbvaluestsorttitemstset_get_returns_nonetassertRaisestdbtDBNotFoundErrortgettput(RR1R9R-R+R/R3RR4R7R((Rt
test01_basicsCsf



			








cCscto dGddGHd|iiGHn|i|iƒ|i}d}|iƒ}|i	ƒ}xT|dj	oF|d}to	|GHn|\}}|i||ƒ|iƒ}qaW~d}|iƒ}|iƒ}xT|dj	oF|d}to	|GHn|\}}|i||ƒ|iƒ}qΩW|idƒ|iƒ\}}|i||ƒ~dS(Ns
s-=isRunning %s.test02_cursors...iitSS(R'RR(R
R!RtcounttcursortctfirsttrectNoneR4RR6tnexttlasttprevtsettcurrent(RRBRDRR4RFR((Rttest02_cursors…sD
	

	

	
cCsk|d}|ddjonI|ddjon4|ddjon|ddjon
td‚dS(NiiRRRRsUnknown key type, fix the test(R4RtAssertionError(RR4RR((RR6―s 
(
R
RRRR!RRR@RMR6(((RR s						B	*tBasicShelveTestCasecBstZd„Zd„ZRS(NcCs2tiƒ|_|ii|i|i|iƒdS(N(R"tDBShelfRRR#Rtdbtypetdbflags(R((RRΙscCs|iiƒdS(N(RRR$(R((RRΝs(R
RRR(((RROΘs	tBTreeShelveTestCasecBstZeiZeiZRS(N(R
RR<tDB_BTREERQt	DB_CREATERR(((RRSΡs	tHashShelveTestCasecBstZeiZeiZRS(N(R
RR<tDB_HASHRQRURR(((RRVΦs	tThreadBTreeShelveTestCasecBs!tZeiZeieiBZRS(N(R
RR<RTRQRUt	DB_THREADRR(((RRXΫs	tThreadHashShelveTestCasecBs!tZeiZeieiBZRS(N(R
RR<RWRQRURYRR(((RRZΰs	tBasicEnvShelveTestCasecBs#tZd„Zd„Zd„ZRS(NcCsΰtiitiitidƒdƒ|_}yti|ƒWnti	j
onXt
iƒ|_|ii
||it
iBt
iBƒtii|iƒd|_ti|iƒ|_|ii
|i|i|iƒdS(Nitdb_homei(RtpathtjointdirnametsystargvRthomeDirtmkdirRR<tDBEnvtenvR#tenvflagst
DB_INIT_MPOOLRUtsplitRR"RPRRQRR(RRb((RRθs/$cCs|iiƒ|iiƒdS(N(RRR$Re(R((RRυs
cCsV|iƒdk}|itii|idƒƒ}x|D]}ti	|ƒq;WdS(NR(
RRtglobRR]R^RbtfilestfileR(RRjRiRk((RRϊs
	!(R
RRRR(((RR[ηs	
	tEnvBTreeShelveTestCasecBs tZdZeiZeiZRS(Ni(R
RRfR<RTRQRURR(((RRls	tEnvHashShelveTestCasecBs tZdZeiZeiZRS(Ni(R
RRfR<RWRQRURR(((RRm	s	tEnvThreadBTreeShelveTestCasecBs*tZeiZeiZeieiBZRS(N(	R
RR<RYRfRTRQRURR(((RRns		tEnvThreadHashShelveTestCasecBs*tZeiZeiZeieiBZRS(N(	R
RR<RYRfRWRQRURR(((RRos		cCsΦtiƒ}|ititƒƒ|ititƒƒ|ititƒƒ|ititƒƒ|itit	ƒƒ|itit
ƒƒ|ititƒƒ|ititƒƒ|itit
ƒƒ|S(N(tunittestt	TestSuitetsuitetaddTestt	makeSuiteRRSRVRXRZRlRmRnRo(Rr((Rt
test_suite!st__main__tdefaultTestRu( t__doc__R`RRR
RtpprintttypesRptbsddb3R<R"tImportErrortbsddbttest_allR'RtTestCaseRRORSRVRXRZR[RlRmRnRoRuR
tmain(R'RlRpRRZRoR
RyRnRORXRSRRmR<R[RRVR`R"RuRR((Rt?s2
	
¨		


Anon7 - 2021