Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�ddlZddlZddlZddlmZmZmZmZdejfd��YZ	d�Z
edkr�ejdd�ndS(	i�N(tdbttest_supporttget_new_environment_pathtget_new_database_pathtpget_bugTestCasecBs/eZdZdZd�Zd�Zd�ZRS(s&Verify that cursor.pget works properlystest-cursor_pget.dbcCst�|_tj�|_|jj|jtjtjB�tj|j�|_	|j	j|j
dtjtj�tj|j�|_|jj
tj�|jj|j
dtjtj�|j	j|jd��|j	jdd�|j	jdd�|j	jdd�dS(	Ntprimaryt	secondarycSs|S(N((tkeytdata((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyt<lambda>stsaladteggstspamthamtomelet(RthomeDirRtDBEnvtenvtopent	DB_CREATEt
DB_INIT_MPOOLtDBt
primary_dbtdb_nametDB_BTREEtsecondary_dbt	set_flagstDB_DUPt	associatetput(tself((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pytsetUp
s ""cCsM|jj�|jj�|jj�|`|`|`tj|j�dS(N(RtcloseRRRtrmtreeR(R((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyttearDowns


cCs�|jj�}|jd|jdddtj��|jd	|jtj��|jd|jtj��|jd
|jdddtj��|jd|jtj��|j�dS(NRR
RtflagsRR
R(seggsssaladseggs(seggssomeletseggs(shamsspamsham(	RtcursortassertEqualtpgetRtDB_SETtDB_NEXT_DUPtNoneR (RR$((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyt	test_pget%s%%(t__name__t
__module__t__doc__RRR"R*(((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyR	s
			cCs
tjt�S(N(tunittestt	makeSuiteR(((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyt
test_suite2st__main__tdefaultTestR0(
R.tostglobttest_allRRRRtTestCaseRR0R+tmain(((s5/sys/lib/python2.7/bsddb/test/test_cursor_pget_bug.pyt<module>s")	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.