Current Path : /usr/local/lib/python2.5/bsddb/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/bsddb/test/test_sequence.pyc |
³ò h”Rc @ sÍ d d k Z d d k Z d d k Z d d k Z d d k Z y d d k l Z Wn# e j o d d k l Z n Xd d k l Z d e i f d „ ƒ YZ d „ Z e d j o e i d d ƒ n d S( iÿÿÿÿN( t db( t verboset DBSequenceTestc B sb e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s d | _ t i i t i i t i d ƒ d ƒ | _ y t i | i ƒ Wn t i j o n X| i t _ t i i t i ƒ ƒ d | _ d t _ t i ƒ | _ | i i | i t i t i Bd ƒ t i | i ƒ | _ | i i | i t i t i d ƒ d S( NI i t db_homei i¶ ( t int_32_maxt ost patht joint dirnamet syst argvt homeDirt mkdirt errort tempfilet tempdirt splitt mktempt filenamet NoneR t DBEnvt dbenvt opent DB_CREATEt DB_INIT_MPOOLt DBt dt DB_BTREE( t self( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt setUp s + #c C s¸ t | d ƒ o | i i ƒ | ` n t | d ƒ o | i i ƒ | ` n t | d ƒ o | i i ƒ | ` n t i t i i | i d ƒ ƒ } x | D] } t i | ƒ q Wd S( Nt seqR R t *( t hasattrR t closeR R t globR R R R t remove( R t filest file( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt tearDown! s ! c C s¿ t i | i d d ƒ| _ d | i } | i d | ƒ | i d | i i | ƒ ƒ | i d | i i d d d d d t i ƒ ƒ | i | | i i d ƒ ƒ | i | d | i i ƒ ƒ d S( Nt flagsi i I t keyt idt txni ( R t DBSequenceR R R t assertEqualt assertEqualsR t init_valueR R t get( R t start_value( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_get0 s .c C sx t i | i d d ƒ| _ | i d | i i d d d d d t i ƒ ƒ | i d | i i d d d d ƒ ƒ | ` d S( NR' i R( t fooR* ( R R+ R R R- R R R R# ( R ( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_remove9 s .%c C sl t i | i d d ƒ| _ d } | i d | i i d | d d d t i ƒ ƒ | i | | i i ƒ ƒ d S( NR' i R2 R( R* ( R R+ R R R- R R R t get_key( R R( ( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_get_key? s .c C si t i | i d d ƒ| _ | i d | i i d d d d d t i ƒ ƒ | i | i | i i ƒ ƒ d S( NR' i R( R2 R* ( R R+ R R R- R R R t get_dbp( R ( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_get_dbpE s .c C sˆ t i | i d d ƒ| _ d } | i d | i i | ƒ ƒ | i d | i i d d d d d t i ƒ ƒ | i | | i i ƒ ƒ d S( NR' i i R( R2 R* ( R R+ R R R- R t set_cachesizeR R t get_cachesize( R t cashe_size( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_cachesizeJ s .c C s t i | i d d ƒ| _ t i } | i d | i i | ƒ ƒ | i d | i i d d d d d t i ƒ ƒ | i | | i i ƒ | @ƒ d S( NR' i R( R2 R* ( R R+ R R t DB_SEQ_WRAPR- R t set_flagsR R t get_flags( R t flag( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_flagsQ s .c C s´ t i | i d d ƒ| _ d | i d | i d f } | i d | i i | ƒ ƒ | i i | d ƒ | i d | i i d d d d d t i ƒ ƒ | i | | i i ƒ ƒ d S( NR' i i i i R( R2 R* ( R R+ R R R R- R t set_rangeR. R R t get_range( R t seq_range( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_rangeX s .c C s‡ t i | i d d ƒ| _ | i d | i i d d d d d t i ƒ ƒ | i i ƒ } x( d D] } | i | | j d | ƒ q_ Wd S( NR' i R( R2 R* t nowaitt mint maxt valuet currentt cache_sizet last_valuet waits parameter %s isn't in stat info( RE s mins maxs valueRI R' RJ s last_values wait( R R+ R R R- R R R t statt assertTrue( R RM t param( ( s4 /usr/local/lib/python2.5/bsddb/test/test_sequence.pyt test_stat` s . ( t __name__t __module__R R&