-í
é¶<c       s­     d  Z    d k Z  d k Z  d k Z 	 d k Z 
 d k Z  e i ƒ  Z  d „  Z  d e i	 f d „  ƒ  YZ
 H d „  Z N e d j o O e ƒ  n d S(   sA   Test script for the dumbdbm module
   Original by Roger E. Masse
Nc     s^     xQ d d d g D ]= }   y  t i t |  ƒ Wn  t j
 o
  n Xq Wd  S(   Ns   .dirs   .dats   .bak(   s   exts   oss   unlinks   _fnames   OSError(   s   ext(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   _delete_files s    	s   DumbDBMTestCasec      s§    t  Z  h  d d <d d <d d <d d <d	 d
 <d d <d d <Z  d „  Z $ d „  Z - d „  Z 3 d „  Z 8 d „  Z = d „  Z B d „  Z	 RS(   Ns    s   0s   Python:s   as   Programmings   bs   thes   cs   ways   ds   Guidos   fs   intendeds   gc    sB      t  i i |  | Œ ! |  i i ƒ  |  _ " |  i i ƒ  d  S(   N(	   s   unittests   TestCases   __init__s   selfs   argss   _dicts   keyss   _dkeyss   sort(   s   selfs   args(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   __init__ s   c    sŠ   $ % t  ƒ  & t i t d ƒ } ' |  i | i ƒ  g  ƒ ( x( |  i D( ] } ) |  i | | | <qH W* |  i
 | ƒ + | i ƒ  d  S(   Ns   c(   s   _delete_filess   dumbdbms   opens   _fnames   fs   selfs   assertEquals   keyss   _dicts   keys   read_helpers   close(   s   selfs   keys   f(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_creation$ s   
 	c    sQ   - . t  i t d ƒ } / d |  i d <| d <0 |  i | ƒ 1 | i ƒ  d  S(   Ns   ws   indenteds   g(   s   dumbdbms   opens   _fnames   fs   selfs   _dicts   read_helpers   close(   s   selfs   f(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_modification- s   c    s9   3 4 t  i t d ƒ } 5 |  i | ƒ 6 | i ƒ  d  S(   Ns   r(   s   dumbdbms   opens   _fnames   fs   selfs   read_helpers   close(   s   selfs   f(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_read3 s   c    s8   8 9 t  i t ƒ } : |  i | ƒ } ; | i ƒ  d  S(   N(   s   dumbdbms   opens   _fnames   fs   selfs   keys_helpers   keyss   close(   s   selfs   keyss   f(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   test_dumbdbm_keys8 s   c    sQ   = > |  i | ƒ } ? x2 |  i D? ]$ } @ |  i |  i | | | ƒ q" Wd  S(   N(   s   selfs   keys_helpers   fs   keyss   _dicts   keys   assertEqual(   s   selfs   fs   keyss   key(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   read_helper= s    	c    s@   B C | i ƒ  } D | i ƒ  E |  i | |  i ƒ F | Sd  S(   N(   s   fs   keyss   sorts   selfs   assertEquals   _dkeys(   s   selfs   fs   keys(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   keys_helperB s   (
   s   __name__s
   __module__s   _dicts   __init__s   test_dumbdbm_creations   test_dumbdbm_modifications   test_dumbdbm_reads   test_dumbdbm_keyss   read_helpers   keys_helper(    (    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   DumbDBMTestCase s   	H		c      s/   H I z J t  i t ƒ Wd  K L t ƒ  Xd  S(   N(   s   test_supports   run_unittests   DumbDBMTestCases   _delete_files(    (    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys	   test_mainH s   s   __main__(   s   __doc__s   oss   test_supports   unittests   dumbdbms   tempfiles   mktemps   _fnames   _delete_filess   TestCases   DumbDBMTestCases	   test_mains   __name__(	   s   test_supports   dumbdbms   DumbDBMTestCases	   test_mains   tempfiles   _fnames   unittests   _delete_filess   os(    (    s'   /usr/lib/python2.2/test/test_dumbdbm.pys   ? s   3