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

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


��Qc@s�dZddlZddlZddlZddlmZmZmZmZdej	fd��YZ
d�Zedkr�ej
dd	�ndS(
sTestCase for reseting File ID.
i�N(tdbttest_supporttget_new_environment_pathtget_new_database_pathtFileidResetTestCasecBs#eZd�Zd�Zd�ZRS(cCs(t�|_t�|_t�|_dS(N(Rt	db_path_1t	db_path_2Rtdb_env_path(tself((s,/sys/lib/python2.7/bsddb/test/test_fileid.pytsetUpscCs�tj�|_|jj|jdtjdtjtjB�|jjdd�|jj	�t
j|j|j�tj�|_
|j
j|jdtj�|j
jdd�|j
j	�tj�|_|jj|jtjtjB�|jj|j�tj|j�|_|jj|jdtjdtj�|j|jjd�d�tj|j�|_
|j
j|jdtjdtj�|j|j
jd�d�|jj	�|j
j	�|jj	�dS(Ntdbtypetflagstspamteggs(RtDBtdb1topenRtDB_HASHt	DB_CREATEtDB_EXCLtputtclosetshutiltcopyRtdb2tDBEnvtdb_envRt
DB_INIT_MPOOLtfileid_resett	DB_RDONLYtassertEqualtget(R((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyttest_fileid_resets*,

 %%

cCs4tj|j�tj|j�tj|j�dS(N(RtunlinkRRtrmtreeR(R((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyttearDown1s(t__name__t
__module__R	R R#(((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyR
s		!cCs;tj�}tj�dkr7|jtjt��n|S(Ni(ii(tunittestt	TestSuiteRtversiontaddTestt	makeSuiteR(tsuite((s,/sys/lib/python2.7/bsddb/test/test_fileid.pyt
test_suite6st__main__tdefaultTestR,(t__doc__tosRR&ttest_allRRRRtTestCaseRR,R$tmain(((s,/sys/lib/python2.7/bsddb/test/test_fileid.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.