config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/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 : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_bsddb.pyc

³ò
h”Rc
@sdZddkZddkZddkZddkZddkZddkZddklZdei	fd„ƒYZ
de
fd„ƒYZde
fd	„ƒYZd
e
fd„ƒYZ
de
fd
„ƒYZde
fd„ƒYZed„ZedjoedeƒndS(s{Test script for the bsddb C module by Roger E. Masse
   Adapted to unittest format and expanded scope by Raymond Hettinger
iÿÿÿÿN(ttest_supportt	TestBSDDBcBsûeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(tcc
Cs†|id|i|iddƒ|_tdddddd	d
ddd
ddƒ|_x*|iiƒD]\}}||i|<qeWdS(Nit	cachesizei€tqtGuidotwtvantetRossumtrtinventedtttPythontyt(t
openmethodtfnametopenflagtftdicttdt	iteritems(tselftktv((s+/usr/local/lib/python2.5/test/test_bsddb.pytsetUps
%0cCsc|iiƒ|iiƒ|idjodSnyti|iƒWntij
onXdS(N(RtsynctcloseRtNonetostremoveterror(R((s+/usr/local/lib/python2.5/test/test_bsddb.pyttearDowns

cCs;x4|iiƒD]#\}}|i|i||ƒqWdS(N(RRtassertEqualR(RRR((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_getitemscCs&|it|iƒt|iƒƒdS(N(R"tlenRR(R((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_len#scCs`d|id<|i|iddƒ|id|iiƒjƒ|id|iiƒjƒdS(Nt
discoveredR
(RR"tassert_tkeystvalues(R((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_change&s
cCs||idjodSn|iiƒ|id|idƒ|_x4|iiƒD]#\}}|i|i||ƒqQWdS(NiR(RRRRRRRR"(RRR((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_close_and_reopen,s
cCs |it|ƒt|ƒƒdS(N(R"tset(Rtseqn1tseqn2((s+/usr/local/lib/python2.5/test/test_bsddb.pytassertSetEquals6scCsÎ|i}|i}|i||ƒ|i|iƒ|iƒƒ|i|iƒ|iƒƒ|i|iƒ|iƒƒ|i|iƒ|iƒƒ|i|iƒ|iƒƒ|i|iƒ|iƒƒdS(N(	RRR/R(R)titemstiterkeyst
itervaluesR(RRR((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_mapping_iteration_methods9s		cCsÃt|idƒpdSnt|iƒ}x;y!|iƒ}d||i|<Wq-tj
oPq-Xq-t|iƒ}x;y!|iƒ}d||i|<Wqztj
oPqzXqz|iƒdS(Nt__iter__s	modified (thasattrRtiterRtnextt
StopIterationR3(Rtditkeytfi((s+/usr/local/lib/python2.5/test/test_bsddb.pyt test_iter_while_modifying_valuesDs"		cCsÏt|idƒpdSn|iiƒ}xAy'|iƒ\}}d||i|<Wq-tj
oPq-Xq-|iiƒ}xAy'|iƒ\}}d||i|<Wq€tj
oPq€Xq€|iƒdS(NRs	modified (R5RRRR7R8R3(RR9RRR;((s+/usr/local/lib/python2.5/test/test_bsddb.pyt%test_iteritems_while_modifying_values]s"		cCsh|iiƒg}x6tdt|iƒƒD]}|i|iiƒƒq+W|i||iiƒƒdS(Ni(	RtfirsttxrangeR$tappendR7R/RR0(RR0ti((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_first_next_loopingvs
cCsh|iiƒg}x6tdt|iƒƒD]}|i|iiƒƒq+W|i||iiƒƒdS(Ni(	RtlastR?R$R@tpreviousR/RR0(RR0RA((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_previous_last_looping|s
cCsp|it|iƒdjdƒx.|iD]#}|iiƒd}|i|=q)W|ig|iiƒdƒdS(Nistest requires >=2 itemsisexpected empty db after test(R'R$RRR>R"R0(Rt_R:((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_first_while_deleting‚s
cCsp|it|iƒdjdƒx.|iD]#}|iiƒd}|i|=q)W|ig|iiƒdƒdS(Nistest requires >=2 itemsisexpected empty db after test(R'R$RRRCR"R0(RRFR:((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_last_while_deletingŠs
cCs-|i|iidƒd|idfƒdS(NR(R"Rtset_locationR(R((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_set_location’scCsDx'|iD]}|i||ijƒq
W|id|ijƒdS(Nsnot here(RR'R(RR((s+/usr/local/lib/python2.5/test/test_bsddb.pyt
test_contains•s
cCsKx*|iD]}|i|ii|ƒƒq
W|i|iidƒƒdS(Nsnot here(RR'Rthas_key(RR((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_has_keyšs
cCs*|iiƒ|it|iƒdƒdS(Ni(RtclearR"R$(R((s+/usr/local/lib/python2.5/test/test_bsddb.pyt
test_clearŸs
icCs6tiiƒ|o	dGHn|iiƒ\}}|o
dG|GHnd|i|<|o	dGHnt|idƒoL|o	dGHn|iiƒ}|iƒ\}}|o	dGHnd|i|<|o	d	GHnx0y|iƒ\}}Wq×tj
oPq×Xq×|o	d
GHnt	|iƒ}|o	dGHnxu|omyM|o	dGHn|iƒ}|o	d
GHnd|i|<|o	dGHnWq9tj
o
d}q9Xq9W|o	dGHqÂn|i|iiƒd|ijƒ|iiƒd}|i||ijƒd|i|<|i|i|dƒdS(NtAtBs0deadlock.  do not pass go.  do not collect $200.tCRtDtEsplease don't deadlocktFtF2tGtHtIsdeadlocks-r-ustJtKisbe gone with ye deadlocks(
tsyststdouttflushRR>R5RR7R8R6RR'R(RtdebugRRRA((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest__no_deadlock_first£sb
	

			
						


#
cCsÂt|idƒpdSnt|iiƒ}|iiƒ}t|iiƒ}|iƒ\}}t|iiƒ}~t|iiƒ}|i||ƒ|i||ƒ|i||djƒdS(NRi(R5RR$t_cursor_refsRR7R"R'(Rtnc1RAtnc2RRtnc3tnc4((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_for_cursor_memleak×scCs‡|iiƒ\}}|i||ijƒ|i||iiƒjƒ|i||ijƒ|it|iƒdt|iƒƒdS(Ni(RtpopitemR'RR)R"R$(RRR((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_popitemìs
cCs‹d}|ii|ƒ}|i||i|ƒ|i||ijƒ|i||iiƒjƒ|it|iƒdt|iƒƒdS(NRi(RtpopR"RR'R)R$(RRR((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_popóscCse|i|iidƒdƒ|i|iiddƒdƒ|i|iiddƒ|idƒdS(NtNotHeretDefaultR(R"RtgetRR(R((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_getûscCsI|i|iiddƒdƒ|i|iiddƒ|idƒdS(NtnewtdogR
tcat(R"Rt
setdefaultR(R((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_setdefaultscCsvtddddddƒ}|ii|ƒ|ii|ƒx4|iiƒD]#\}}|i|i||ƒqKWdS(NRtlifetutofRAtbrian(RRtupdateRRR"(RRoRR((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_updatescCsÙ|idtij	odSn|iiƒ}|iƒ|i|iiƒd|dƒ|i|ii	ƒd|dƒ|i|ii
ƒd|dƒ|i|iiƒd|dƒ|it|iƒ|ƒdS(Niiiÿÿÿÿiþÿÿÿ(
RtbsddbtbtopenRR(tsortR"RR>R7RCRDtlist(RR(((s+/usr/local/lib/python2.5/test/test_bsddb.pyttest_keyorderings
!!!!(t__name__t
__module__RRR!R#R%R*R+R/R3R<R=RBRERGRHRJRKRMROR`RfRhRjRnRsRyR~(((s+/usr/local/lib/python2.5/test/test_bsddb.pyRs6		
				
												4						t	TestBTreecBseZeiZeigZRS((RR€RtTESTFNRRzR{R(((s+/usr/local/lib/python2.5/test/test_bsddb.pyRs	tTestBTree_InMemorycBseZdZeigZRS(N(RR€RRRzR{R(((s+/usr/local/lib/python2.5/test/test_bsddb.pyRƒstTestBTree_InMemory_TruncatecBs eZdZdZeigZRS(tnN(RR€RRRRzR{R(((s+/usr/local/lib/python2.5/test/test_bsddb.pyR„st
TestHashTablecBseZeiZeigZRS((RR€RR‚RRzthashopenR(((s+/usr/local/lib/python2.5/test/test_bsddb.pyR†#s	tTestHashTable_InMemorycBseZdZeigZRS(N(RR€RRRzR‡R(((s+/usr/local/lib/python2.5/test/test_bsddb.pyRˆ'scCstitttttƒdS(N(Rtrun_unittestRR†RƒRˆR„(tverbose((s+/usr/local/lib/python2.5/test/test_bsddb.pyt	test_main/st__main__RŠ(t__doc__RR\tcopyRztdbhashtunittestttestRtTestCaseRRRƒR„R†RˆRR‹RtTrue(((s+/usr/local/lib/python2.5/test/test_bsddb.pys<module>s ÿ	


Man Man