%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/bsddb/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/bsddb/test/test_db.pyc

ó
Oêáac@sùddlZddlZddlZddlmZmZmZmZdejfd„ƒYZ	de	fd„ƒYZ
de	fd„ƒYZd	e	fd
„ƒYZde	fd„ƒYZ
d
e	fd„ƒYZd„ZedkrõejddƒndS(iÿÿÿÿN(tdbttest_supporttget_new_environment_pathtget_new_database_pathtDBcBseZd„Zd„ZRS(cCstƒ|_tjƒ|_dS(N(RtpathRR(tself((s./usr/local/lib/python2.7/bsddb/test/test_db.pytsetUp
scCs'|jjƒ|`tj|jƒdS(N(RtcloseRtunlinkR(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttearDowns
(t__name__t
__module__RR
(((s./usr/local/lib/python2.7/bsddb/test/test_db.pyR	s	t
DB_generalcBsSeZd„Zd„Zd„Zd„ZejƒdkrHd„Znd„Z	RS(	cCsE|jj|jdtjdtjƒ|jtj|jjƒƒdS(Ntdbtypetflags(RtopenRtDB_HASHt	DB_CREATEtassertEqualtget_open_flags(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_get_open_flagss%cCsS|jj|jdtjdtjtjBƒ|jtjtjB|jjƒƒdS(NRR(RRRRRt	DB_THREADRR(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_get_open_flags2s!cCsK|jj|jdtjdtjƒ|j|jdf|jjƒƒdS(NRR(RRRRRRtNonet
get_dbname(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_get_dbname_filenames%cCsid}|jj|jd|dtjdtjƒ|j|j|f|jjƒƒd„}d„}dS(Nsjcea-random-nametdbnameRRcSsGx@dddgD]/}|jj|ƒ|j||jjƒƒqWdS(Niili(Rt
set_bt_minkeyRt
get_bt_minkey(Rti((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_bt_minkey'scSsr|jjdƒ|jd|jjƒƒ|jjdƒ|jd|jjƒƒ|jtj|jjdƒdS(NiÒiáiÞ#(Rt
set_lorderRt
get_lordertassertRaisestDBInvalidArgError(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_lorder,s
(RRRRRRR(RtnameRR$((s./usr/local/lib/python2.7/bsddb/test/test_db.pyt!test_get_dbname_filename_database!s!
"	iicCsbtjtjtjtjtjg}x7|D]/}|jj|ƒ|j||jjƒƒq+WdS(N(	RtDB_PRIORITY_VERY_LOWtDB_PRIORITY_LOWtDB_PRIORITY_DEFAULTtDB_PRIORITY_HIGHtDB_PRIORITY_VERY_HIGHtset_priorityRtget_priority(RRtflag((s./usr/local/lib/python2.7/bsddb/test/test_db.pyt
test_priority4s
cCsU|j|jjƒƒ|jj|jdtjdtjƒ|j|jjƒƒdS(NRR(tassertFalseRtget_transactionalRRRR(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_get_transactional<s%(ii(
RRRRRR&RtversionR/R2(((s./usr/local/lib/python2.7/bsddb/test/test_db.pyR
s				tDB_hashcBs#eZd„Zd„Zd„ZRS(cCsGx@dddgD]/}|jj|ƒ|j||jjƒƒqWdS(Niii(Rt
set_h_ffactorRt
get_h_ffactor(Rtffactor((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_h_ffactorBscCsUxNdddgD]=}|dd}|jj|ƒ|j||jjƒƒqWdS(Niiii(Rtset_h_nelemRtget_h_nelem(Rtnelem((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_h_nelemGscCs‰xJtddƒD]9}d|>}|jj|ƒ|j||jjƒƒqW|jtj|jjdƒ|jtj|jjdƒdS(Ni	iiiii(txrangeRtset_pagesizeRtget_pagesizeR"R#(RR((s./usr/local/lib/python2.7/bsddb/test/test_db.pyt
test_pagesizeMs
(RRR8R<R@(((s./usr/local/lib/python2.7/bsddb/test/test_db.pyR4As		tDB_txncBs#eZd„Zd„Zd„ZRS(cCsbtƒ|_tjƒ|_|jj|jtjtjBtjBtj	Bƒtj
|jƒ|_dS(N(RthomeDirRtDBEnvtenvRRt
DB_INIT_MPOOLtDB_INIT_LOGtDB_INIT_TXNR(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyRZs
cCsC|jjƒ|`|jjƒ|`tj|jƒd„}dS(NcSsi|jjtjƒ|jtj|jjƒƒ|jjtjƒ|jtjtjB|jjƒƒdS(N(Rt	set_flagst	DB_CHKSUMRt	get_flagstDB_TXN_NOT_DURABLE(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyt
test_flagshs
(RRRDRtrmtreeRB(RRL((s./usr/local/lib/python2.7/bsddb/test/test_db.pyR
as

cCsY|j|jjƒƒ|jjddtjdtjtjBƒ|j|jjƒƒdS(NtXXXRR(R0RR1RRRtDB_AUTO_COMMITt
assertTrue(R((s./usr/local/lib/python2.7/bsddb/test/test_db.pyR2os(RRRR
R2(((s./usr/local/lib/python2.7/bsddb/test/test_db.pyRAYs		tDB_recnocBs#eZd„Zd„Zd„ZRS(cCsŠxCddgD]5}|jj|ƒ|jt|ƒ|jjƒƒq
Wx=ddgD]/}|jj|ƒ|j||jjƒƒqSWdS(Nt t*iaiA(Rt
set_re_padRtordt
get_re_pad(RR((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_re_padws#cCsŠxCddgD]5}|jj|ƒ|jt|ƒ|jjƒƒq
Wx=ddgD]/}|jj|ƒ|j||jjƒƒqSWdS(NRRRSiaiA(Rtset_re_delimRRUtget_re_delim(RR((s./usr/local/lib/python2.7/bsddb/test/test_db.pyt
test_re_delims#cCsGx@dddgD]/}|jj|ƒ|j||jjƒƒqWdS(Nttestttest2ttest3(Rt
set_re_sourceRt
get_re_source(RR((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_re_source‡s(RRRWRZR`(((s./usr/local/lib/python2.7/bsddb/test/test_db.pyRQvs		tDB_queuecBseZd„Zd„ZRS(cCsJxCddddgD]/}|jj|ƒ|j||jjƒƒqWdS(Ni!iAi,iÐ(Rt
set_re_lenRt
get_re_len(RR((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_re_lenscCsGx@dddgD]/}|jj|ƒ|j||jjƒƒqWdS(Nii<id(Rtset_q_extentsizeRtget_q_extentsize(RR((s./usr/local/lib/python2.7/bsddb/test/test_db.pyttest_q_extentsize’s(RRRdRg(((s./usr/local/lib/python2.7/bsddb/test/test_db.pyRaŒs	cCs~tjƒ}|jtjtƒƒ|jtjtƒƒ|jtjtƒƒ|jtjtƒƒ|jtjtƒƒ|S(N(	tunittestt	TestSuitetaddTestt	makeSuiteR
RAR4RQRa(tsuite((s./usr/local/lib/python2.7/bsddb/test/test_db.pyt
test_suite—st__main__tdefaultTestRm(Rhtostglobttest_allRRRRtTestCaseRR
R4RARQRaRmRtmain(((s./usr/local/lib/python2.7/bsddb/test/test_db.pyt<module>s"
.	

Zerion Mini Shell 1.0