%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/bsddb/test/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_compat.pyo |
� 5}�ac @ s� d Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z m Z m Z d e j f d � � YZ d � Z e d k r� e j 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? /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_compat.pyt setUp s c C s/ y t j | j � Wn t j k r* n Xd S( N( t ost removeR t error( R ( ( s? /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_compat.pyt tearDown s c C s | j t d � d S( NR ( t do_bthash_testR ( R ( ( s? /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_compat.pyt test01_btopen s c C s | j t d � d S( NR ( R R ( R ( ( s? /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_compat.pyt test02_hashopen s c C s� d j � } t r d GHn t | j d � } x, t t | � � D] } | | | | d <q? W| d | d | d f } t r� d | GHn | j | d d d � | j d � } | d k r� | j d t | � � n d | d <| j � ~ t | j d � } d | d <d � } | j t | | � d � } | j t | | � | d =| j � } x= | r�t ri| GHn y | j � } WqUt k r�PqUXqUW| j � 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? /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_compat.pyt noRec8 s c S s | d } d S( Ns a string( ( R R ( ( s? /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_compat.pyt badKey<