-í
É<c       sq   d  Z  d k Z d k Z d k Z d k Z d k Z d e i f d     YZ d   Z e	 d j o e   n d S(   sA   Test script for the dumbdbm module
   Original by Roger E. Masse
Ns   DumbDBMTestCasec      s   e  i   Z h  d d <d d <d d <d d <d	 d
 <d d <d d <Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 RS(   Ns    s   0s   Python:s   as   Programmings   bs   thes   cs   ways   ds   Guidos   fs   intendeds   gc    s6   t  i i |  |  |  i i   |  _ |  i i   d  S(   N(	   s   unittests   TestCases   __init__s   selfs   argss   _dicts   keyss   _dkeyss   sort(   s   selfs   args(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   __init__ s    c    sł   xE d d d g D]4 } y t i |  i |  Wn t j
 o n Xq Wt i |  i d  } |  i	 | i
   g   x" |  i D] } |  i | | | <q} W|  i |  | i   d  S(   Ns   .dirs   .dats   .baks   c(   s   exts   oss   unlinks   selfs   _fnames   OSErrors   dumbdbms   opens   fs   assertEquals   keyss   _dicts   keys   read_helpers   close(   s   selfs   exts   keys   f(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_creation s       	
 c    sE   t  i |  i d  } d |  i d <| d <|  i |  | i   d  S(   Ns   ws   indenteds   g(   s   dumbdbms   opens   selfs   _fnames   fs   _dicts   read_helpers   close(   s   selfs   f(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_modification( s    c    s0   t  i |  i d  } |  i |  | i   d  S(   Ns   r(   s   dumbdbms   opens   selfs   _fnames   fs   read_helpers   close(   s   selfs   f(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_read. s    c    s/   t  i |  i  } |  i |  } | i   d  S(   N(   s   dumbdbms   opens   selfs   _fnames   fs   keys_helpers   keyss   close(   s   selfs   keyss   f(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_keys3 s    c    sB   |  i |  } x, |  i D]! } |  i |  i | | |  q Wd  S(   N(   s   selfs   keys_helpers   fs   keyss   _dicts   keys   assertEqual(   s   selfs   fs   keyss   key(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   read_helper8 s    
 c    s1   | i   } | i   |  i | |  i  | Sd  S(   N(   s   fs   keyss   sorts   selfs   assertEquals   _dkeys(   s   selfs   fs   keys(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   keys_helper= s    
(   s   tempfiles   mktemps   _fnames   _dicts   __init__s   test_dumbdbm_creations   test_dumbdbm_modifications   test_dumbdbm_reads   test_dumbdbm_keyss   read_helpers   keys_helper(    (    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   DumbDBMTestCase s    E							c      s   t  i t  d  S(   N(   s   test_supports   run_unittests   DumbDBMTestCase(    (    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys	   test_mainC s    s   __main__(
   s   __doc__s   oss   test_supports   unittests   dumbdbms   tempfiles   TestCases   DumbDBMTestCases	   test_mains   __name__(   s   test_supports   dumbdbms   DumbDBMTestCases	   test_mains   tempfiles   unittests   os(    (    s1   /usr/local/twc/lib/python2.2/test/test_dumbdbm.pys   ? s   					7	