%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/bsddb/test/ |
Current File : //usr/local/lib/python2.7/bsddb/test/test_db.pyc |
ó Oêáac @ sù d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z d e j f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z e d k rõ e j d d ƒ n d S( iÿÿÿÿN( t dbt test_supportt get_new_environment_patht get_new_database_patht DBc B s e Z d „ Z d „ Z RS( c C s t ƒ | _ t j ƒ | _ d S( N( R t pathR R ( t self( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt setUp s c C s' | j j ƒ | ` t j | j ƒ d S( N( R t closeR t unlinkR ( R ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt tearDown s ( t __name__t __module__R R ( ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyR s t DB_generalc B sS e Z d „ Z d „ Z d „ Z d „ Z e j ƒ d k rH d „ Z n d „ Z RS( c C sE | j j | j d t j d t j ƒ| j t j | j j ƒ ƒ d S( Nt dbtypet flags( R t openR t DB_HASHt DB_CREATEt assertEqualt get_open_flags( R ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt test_get_open_flags s %c C sS | j j | j d t j d t j t j Bƒ| j t j t j B| j j ƒ ƒ d S( NR R ( R R R R R t DB_THREADR R ( R ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt test_get_open_flags2 s !c C sK | j j | j d t j d t j ƒ| j | j d f | j j ƒ ƒ d S( NR R ( R R R R R R t Nonet get_dbname( R ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt test_get_dbname_filename s %c C si d } | j j | j d | d t j d t j ƒ| j | j | f | j j ƒ ƒ d „ } d „ } d S( Ns jcea-random-namet dbnameR R c S sG x@ d d d g D]/ } | j j | ƒ | j | | j j ƒ ƒ q Wd S( Ni il i ( R t set_bt_minkeyR t get_bt_minkey( R t i( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt test_bt_minkey' s c S sr | j j d ƒ | j d | j j ƒ ƒ | j j d ƒ | j d | j j ƒ ƒ | j t j | j j d ƒ d S( NiÒ iá iÞ# ( R t set_lorderR t get_lordert assertRaisest DBInvalidArgError( R ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt test_lorder, s ( R R R R R R R ( R t nameR R$ ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt! test_get_dbname_filename_database! s ! " i i c C sb t j t j t j t j t j g } x7 | D]/ } | j j | ƒ | j | | j j ƒ ƒ q+ Wd S( N( R t DB_PRIORITY_VERY_LOWt DB_PRIORITY_LOWt DB_PRIORITY_DEFAULTt DB_PRIORITY_HIGHt DB_PRIORITY_VERY_HIGHt set_priorityR t get_priority( R R t flag( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt test_priority4 s c C sU | j | j j ƒ ƒ | j j | j d t j d t j ƒ| j | j j ƒ ƒ d S( NR R ( t assertFalseR t get_transactionalR R R R ( R ( ( s. /usr/local/lib/python2.7/bsddb/test/test_db.pyt test_get_transactional<