ó {G_Tc@sļdZddlmZmZmZddlZeddeƒZddlZddl Z ddl Z ddl Z ddl Z dej fd„ƒYZd„Zed krīeƒndS( syTests for the bsddb185 module. The file 185test.db found in Lib/test/ is for testing purposes with this testing suite. iĸĸĸĸ(t run_unittesttfindfilet import_moduleNtbsddb185t deprecatedt Bsddb185TestscBs#eZd„Zd„Zd„ZRS(cCs7tjtdƒƒ}|j|ddƒ|jƒdS(Ns 185test.dbt1(RthashopenRt assertEqualtclose(tselftdb((s./usr/local/lib/python2.7/test/test_bsddb185.pyttest_open_existing_hashscCs#|jtjtdƒƒdƒdS(Ns 185test.dbR(RtwhichdbR(R ((s./usr/local/lib/python2.7/test/test_bsddb185.pyt test_whichdbscCsotjƒ}zNtjj|dƒ}tj|dƒjƒtj|ƒ}|j |dƒWdt j |ƒXdS(Nsfoo.dbtcR( ttempfiletmkdtemptostpathtjointanydbmtopenR R tassertNotEqualtshutiltrmtree(R ttmpdirtdbfiletftype((s./usr/local/lib/python2.7/test/test_bsddb185.pyttest_anydbm_creates (t__name__t __module__R RR(((s./usr/local/lib/python2.7/test/test_bsddb185.pyRs  cCsttƒdS(N(RR(((s./usr/local/lib/python2.7/test/test_bsddb185.pyt test_main'st__main__(t__doc__ttest.test_supportRRRtunittesttTrueRRR RRRtTestCaseRR R(((s./usr/local/lib/python2.7/test/test_bsddb185.pyts