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

hRc@s{dZddkZddkZddkZddkZddklZddkZyddkl	Z	l
Z
Wn)ej
oddkl	Z	l
Z
nXe
ZdZdZddd	d
ddd
dgZdd	d
dddd
ddg	ZdeifdYZdeifdYZdefdYZdefdYZdZedjoeiddndS(s8
TestCases for python DB Btree key comparison function.
iN(tStringIO(tdbtdbshelvecCst|i|iS(N(tcmptlower(tlefttright((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt
lowercase_cmpscCs|d}|S(NcSs|||S(N((RRtdelegate((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytreverses((RR	((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytmake_reverse_comparatorsttCCCPtataaatbtctccccetccccftCCtComparatorTestscBs,eZdZdZdZdZRS(cCs;|}|i||i||jd|||fdS(Ns'comparator `%s' is not right: %s vs. %s(tsortt
failUnless(tselft
comparatort
expected_datatdata((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytcomparator_test_helpers

cCs|ittdS(N(Rtlexical_cmpt_expected_lexical_test_data(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_lexical_comparator%scCs+t}|i|itt|dS(N(RR	RR
R(Rtrev((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_reverse_lexical_comparator's
cCs|ittdS(N(RRt_expected_lowercase_test_data(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_lowercase_comparator,s	(t__name__t
__module__RRR R"(((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyRs			tAbstractBtreeKeyCompareTestCasecBsheZd	Zd	ZdZdZdZdZdZ	dZ
dZd	dZdZ
RS(
cCs|iid|_tiitiitidd}||_	yti
|Wntij
onXti
}|i|titiBtiBtiB||_dS(Ns.dbitdb_home(t	__class__R#tfilenametostpathtjointdirnametsystargvthomeDirtmkdirterrorRtDBEnvtopent	DB_CREATEt
DB_INIT_MPOOLtDB_INIT_LOCKt	DB_THREADtenv(RR/R8((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytsetUp4s(		cCso|i|idj	o|iid|_nddk}tti|itii	|i
ddS(Nit*(tcloseDBR8tNonetclosetglobtmapR)tremoveR*R+R/(RR>((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttearDownCs


cCs>d}x1|D])}|ii|t||d}q
WdS(Nii(Rtputtstr(RRtititem((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytaddDataToDBKs
cCsHti|i|_|i||ii|idtitidS(Nttest(RtDBR8tsetupDBR3R(tDB_BTREER4(Rtkey_comparator((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytcreateDBQs
cCs|ii|dS(N(Rtset_bt_compare(RRK((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyRIVscCs.|idj	o|iid|_ndS(N(RR<R=(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyR;Ys
cCsdS(N((R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt	startTest^scCs,|dj	o|i|n|idS(N(R<t
check_resultsR;(Rtexpected((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt
finishTestas
c	Cs|ii}zd}|i}xu|om|\}}|i|t|jd|i|||jd||||f|d}|i}q'W|i|t|jdWd|iXdS(Nis#to many values returned from cursors&expected value `%s' at %d but got `%s'is&not enough values returned from cursor(RtcursortfirstRtlentnextR=(RRPtcurstindextrectkeytignore((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyROfs"
N(R#R$R<R8RR9RARFRLRIR;RNRQRO(((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyR%0s							tBtreeKeyCompareTestCasecBs,eZdZdZdZdZRS(cCs5|i|i||i||i|dS(N(RNRLRFRQ(RRR((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytrunCompareTestzs


cCs|ittdS(N(R\RR(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_lexical_orderingscCs+t}|i|itt|dS(N(RR	R\R
R(Rtexpected_rev_data((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_reverse_lexical_orderings
cCsJ|id}|i||idddg|idgdS(NcSsdS(Ni((tltr((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytsocialist_comparatorsRR
td(RNRLRFRQ(RRb((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_compare_function_uselesss

	
(R#R$R\R]R_Rd(((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyR[ys			tBtreeExceptionsTestCasecBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCsD|i|it|id|it|id|idS(Ntabc(RNtassertRaisest	TypeErrorRLR<RQ(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_raises_non_callables
cCs%|i|it|idS(N(RNRLRRQ(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt!test_set_bt_compare_with_functions

cCsdS(N((Rtresults((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyROscCs7|id}|it|i||idS(NcSsdS(Ni((R`Ra((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytbad_comparators(RNRgRhRLRQ(RRl((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_compare_function_incorrects
	cCskti}tt_z|Wdti}|t_|i}|i|p|id|nXdS(s
        Call method() while capturing sys.stderr output internally and
        call self.fail() if successRe.search() does not match the stderr
        output.  This is used to test for uncatchable exceptions.
        Nsunexpected stderr output:
(R-tstderrRtgetvaluetsearchtfail(Rtmethodt	successRetstdErrttempterrorOut((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pytverifyStderrs			cCsD|id}|i||idddg|idS(NcSs"||jodSntddS(Nis!i'm a naughty comparison function(tRuntimeError(R`Ra((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyRls
R
RR(RNRLRFRQ(RRl((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt _test_compare_function_exceptions

	
cCs-|i|itidtitiBdS(Ns(^RuntimeError:.* naughty.*){2}(RwRytretcompiletMtS(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_compare_function_exceptionscCsD|id}|i||idddg|idS(NcSs||jodSn|S(Ni((R`Ra((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyRls
R
RR(RNRLRFRQ(RRl((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt!_test_compare_function_bad_returns

	
cCs-|i|itidtitiBdS(Ns"(^TypeError:.* return an int.*){2}(RwRRzR{R|R}(R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt test_compare_function_bad_returnscCsPd}|i|i|y|ii|Wntj
o	}nXdS(NcSsdS(Ni((R
R((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt
my_compares(RNRLRRMRx(RRtmsg((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyttest_cannot_assign_twices	

(R#R$RiRjRORmRwRyR~RRR(((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyRes									cCsiti}|itittidjo0|itit|ititn|S(Nii(iii(	tunittestt	TestSuitetaddTestt	makeSuiteRRtversionReR[(tres((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pyt
test_suitest__main__tdefaultTesttsuite(t__doc__R-R)Rzttest_allt	cStringIORRtbsddb3RRtImportErrortbsddbRRRR
RR!tTestCaseRR%R[ReRR#tmain(((s3/usr/local/lib/python2.5/bsddb/test/test_compare.pys<module>s($		!I[		


Man Man