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_dbshelve.pyo

³ò
h”Rc@s
dZddkZddkZddkZddkZddkZddklZddkTddkZyddk	l
Z
lZWn)ej
oddk
l
Z
lZnXddklZdd%d„ƒYZd	eifd
„ƒYZdefd„ƒYZd
efd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd!„Zed"joei d#d$ƒndS(&s*
TestCases for checking dbShelve objects.
iÿÿÿÿN(tpprint(t*(tdbtdbshelve(tverboset	DataClasscBseZd„Zd„ZRS(cCstiƒ|_dS(N(trandomtvalue(tself((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyt__init__scCst|i|ƒS(N(tcmpR(Rtother((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyt__cmp__s(t__name__t
__module__R	R(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRs	tDBShelveTestCasecBsbeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„ZRS(
cCstiƒ|_|iƒdS(N(ttempfiletmktemptfilenametdo_open(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pytsetUp!scCs;|iƒyti|iƒWntij
onXdS(N(tdo_closetostremoveRterror(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyttearDown%s

cCs|S(s1Turn key into an appropriate key type for this db((Rtkey((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pytmk,scCsºx³tiD]¨}d|||id|ƒ<t|ƒ||id|ƒ<|gd||id|ƒ<tƒ}d||_t|ƒ|_|gd|_|||id|ƒ<q
WdS(Ni
tStItLtO(tstringtlettersRtordRRRR(Rtdtxtinst((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyt
populateDB1s
	
cCsti|iƒ|_dS(N(RtopenRR#(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR?scCs|iiƒdS(N(R#tclose(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRCsc	Csçto dGddGHd|iiGHn|i|iƒ|iiƒ|iƒ|iƒ|i}t|ƒ}|i	ƒ}|i
ƒ}|iƒ}todG|GHdG|GHdG|GHn|i|i
dƒƒ||i
d	ƒ=g}xU|i	ƒD]G}||}|i|ƒtod
||fGHn|i||ƒqðW|iƒ}	|iƒ|	iƒ|iƒ}
x$|
D]\}}|i||ƒqnW|idƒ|iti|i|i
dƒƒ|id
ƒ|i|i
dƒdƒdS(Ns
s-=isRunning %s.test01_basics...slength:skeys:sstats:tIAtOAs%s: %sisbad keyisnew keysnew data(Rt	__class__R
R&R#tsyncRRtlentkeyststattfdtdeleteRtappendtcheckrectvaluestsorttitemstset_get_returns_nonetassertRaisesRtDBNotFoundErrortgettput(RR#tltktstfR4RRtdbvaluesR6((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyt
test01_basicsHsL



			






"
cCslto 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|i|i
dƒƒ|iƒ\}}|i||ƒ~dS(Ns
s-=isRunning %s.test02_cursors...iitSS(RR+R
R&R#tcursortfirsttNoneR3tnexttlasttprevtsetRtcurrent(RR#tcounttctrecRR((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyttest02_cursorsŠs@
	

	

	cCsGto dGddGHd|iiGHn|iti|iidƒdS(Ns
s-=isRunning %s.test03_append...sunit test was here(RR+R
R8Rt
DBShelveErrorR#R2(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyt
test03_append³s

cCsk|d}|ddjonI|ddjon4|ddjon|ddjon
td‚dS(NiiRRRRsUnknown key type, fix the test(tAssertionError(RRRR$((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR3½s
(R
RRRRR&RRRARNRPR3(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR s							B	)	
tBasicShelveTestCasecBseZd„Zd„ZRS(cCs2tiƒ|_|ii|i|i|iƒdS(N(RtDBShelfR#R'Rtdbtypetdbflags(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRØscCs|iiƒdS(N(R#R((R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRÜs(R
RRR(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRR×s	tBTreeShelveTestCasecBseZeiZeiZRS((R
RRtDB_BTREERTt	DB_CREATERU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRVàs	tHashShelveTestCasecBseZeiZeiZRS((R
RRtDB_HASHRTRXRU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRYås	tThreadBTreeShelveTestCasecBs!eZeiZeieiBZRS((R
RRRWRTRXt	DB_THREADRU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR[ês	tThreadHashShelveTestCasecBs!eZeiZeieiBZRS((R
RRRZRTRXR\RU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR]ïs	tBasicEnvShelveTestCasecBs#eZd„Zd„Zd„ZRS(cCsàtiitiitidƒdƒ|_}yti|ƒWntij
onXt	i
ƒ|_|ii||i
t	iBt	iBƒtii|iƒd|_ti|iƒ|_|ii|i|i|iƒdS(Nitdb_homei(RtpathtjointdirnametsystargvthomeDirtmkdirRRtDBEnvtenvR'tenvflagst
DB_INIT_MPOOLRXtsplitRRRSR#RTRU(RRe((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR÷s	&$cCs|iiƒ|iiƒdS(N(R#R(Rh(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRs
cCsY|iƒddk}|itii|idƒƒ}x|D]}ti|ƒq>WdS(NiÿÿÿÿR(RtglobRR`RaReR(RRltfilestfile((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR	s
!(R
RRRR(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR^ös	
	tEnvBTreeShelveTestCasecBs eZdZeiZeiZRS(i(R
RRiRRWRTRXRU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRos	tEnvHashShelveTestCasecBs eZdZeiZeiZRS(i(R
RRiRRZRTRXRU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRps	tEnvThreadBTreeShelveTestCasecBs*eZeiZeiZeieiBZRS((	R
RRR\RiRWRTRXRU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRqs		tEnvThreadHashShelveTestCasecBs*eZeiZeiZeieiBZRS((	R
RRR\RiRZRTRXRU(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRr$s		tRecNoShelveTestCasecBs>eZeiZeiZd„Zd„Zd„Z	d„Z
RS(cCs;ti|ƒttddƒƒ|_h|_h|_dS(Niiˆ(RRRtlisttrangetkey_pooltkey_mapt
intkey_map(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR1s
	cCsL||ijo1|iidƒ|i|<||i|i|<n|i|S(Ni(RwRvtpopRx(RR((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR9scCs$|i|}ti|||ƒdS(N(RxRRR3(RtintkeyRR((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyR3?s
cCsíto dGddGHd|iiGHnd|id<d|id<|id	|iidƒƒ|id
|iidƒƒ|id|iid	ƒƒ|id|iidƒƒ|id|iid
ƒƒ|id|iidƒƒdS(Ns
s-=isRunning %s.test03_append...tspamiteggsiiisbaked beans(RR+R
R#tassertEqualR2R:(R((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRPCs


(R
RRtDB_RECNORTRXRURRR3RP(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyRs-s					cCsìtiƒ}|ititƒƒ|ititƒƒ|ititƒƒ|ititƒƒ|ititƒƒ|itit	ƒƒ|itit
ƒƒ|ititƒƒ|ititƒƒ|itit
ƒƒ|S(N(tunittestt	TestSuitetaddTestt	makeSuiteRRVRYR[R]RoRpRqRrRs(tsuite((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pyt
test_suiteTst__main__tdefaultTestR„((!t__doc__RcRR RRRttypesRtbsddb3RRtImportErrortbsddbttest_allRRtTestCaseRRRRVRYR[R]R^RoRpRqRrRsR„R
tmain(((s4/usr/local/lib/python2.5/bsddb/test/test_dbshelve.pys<module>s4$
·		'	


Man Man