ACC SHELL
Ñò
q&ÄMc @ sŸ d Z d d k Z d d k Z d d k Z d d k l Z l Z l Z l Z l Z l
Z
d e i f d „ ƒ YZ d „ Z
e d j o e i d d ƒ n d S(
sU
Test cases adapted from the test_bsddb.py module in Python's
regression test suite.
iÿÿÿÿN( t dbt hashopent btopent rnopent verboset get_new_database_patht CompatibilityTestCasec B sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s t ƒ | _ d S( N( R t filename( t self( ( s, /usr/lib/python2.6/bsddb/test/test_compat.pyt setUp s c C s1 y t i | i ƒ Wn t i j
o n Xd S( N( t ost removeR t error( R ( ( s, /usr/lib/python2.6/bsddb/test/test_compat.pyt tearDown s c C s | i t d ƒ d S( NR ( t do_bthash_testR ( R ( ( s, /usr/lib/python2.6/bsddb/test/test_compat.pyt
test01_btopen s c C s | i t d ƒ d S( NR ( R R ( R ( ( s, /usr/lib/python2.6/bsddb/test/test_compat.pyt test02_hashopen s c C s¬ d i ƒ } t o d GHn t | i d ƒ } x, t t | ƒ ƒ D] } | | | | d <qA W| d | d | d f } t o
d | GHn | i | d d d ƒ | i d ƒ } | d j o | i d t | ƒ ƒ n d | d
<| i
ƒ ~ t | i d ƒ } d | d <d „ } | i t | | ƒ d „ } | i t
| | ƒ | d =| i ƒ } xC | o; t o | GHn y | i ƒ } Wq[t j
o Pq[Xq[W| i
ƒ d S( Ns- The quick brown fox jumped over the lazy dog.s
Testing: rnopent ci i i s %s %s %st quicks data mismatch!t browns$ recno database set_location failed: s twenty-fivei t wt twentyi c S s | d } d S( Ni ( ( t ft rec( ( s, /usr/lib/python2.6/bsddb/test/test_compat.pyt noRec8 s c S s | d } d S( Ns a string( ( R R ( ( s, /usr/lib/python2.6/bsddb/test/test_compat.pyt badKey<