Ņō
ā"Ic        
   @   sē   d  Z  d d k l Z l Z l Z d d k Z e d d e Z d d k Z d d k	 Z	 d d k
 Z
 d d k Z d d k Z d e i f d     YZ d   Z e d	 j o e   n d S(
   sy   Tests for the bsddb185 module.

The file 185test.db found in Lib/test/ is for testing purposes with this
testing suite.

i˙˙˙˙(   t   run_unittestt   findfilet   import_moduleNt   bsddb185t
   deprecatedt   Bsddb185Testsc           B   s#   e  Z d    Z d   Z d   Z RS(   c         C   s7   t  i t d   } |  i | d d  | i   d  S(   Ns
   185test.dbt   1(   R   t   hashopenR   t   assertEqualt   close(   t   selft   db(    (    s/   /mit/python/lib/python2.6/test/test_bsddb185.pyt   test_open_existing_hash   s    c         C   s#   |  i  t i t d   d  d  S(   Ns
   185test.dbR   (   R   t   whichdbR   (   R
   (    (    s/   /mit/python/lib/python2.6/test/test_bsddb185.pyt   test_whichdb   s    c         C   so   t  i   } zN t i i | d  } t i | d  i   t i |  } |  i	 | d  Wd  t
 i |  Xd  S(   Ns   foo.dbt   cR   (   t   tempfilet   mkdtempt   ost   patht   joint   anydbmt   openR	   R   t   assertNotEqualt   shutilt   rmtree(   R
   t   tmpdirt   dbfilet   ftype(    (    s/   /mit/python/lib/python2.6/test/test_bsddb185.pyt   test_anydbm_create   s    (   t   __name__t
   __module__R   R   R   (    (    (    s/   /mit/python/lib/python2.6/test/test_bsddb185.pyR      s   		c           C   s   t  t  d  S(   N(   R    R   (    (    (    s/   /mit/python/lib/python2.6/test/test_bsddb185.pyt	   test_main'   s    t   __main__(   t   __doc__t   test.test_supportR    R   R   t   unittestt   TrueR   R   R   R   R   R   t   TestCaseR   R    R   (    (    (    s/   /mit/python/lib/python2.6/test/test_bsddb185.pyt   <module>   s   	