mς
­fIc           @   s   d  Z  d k l Z l Z l Z d k Z d k 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(   sy   Tests for the bsddb185 module.

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

(   s   verboses   run_unittests   findfileNt   Bsddb185Testsc           B   s#   t  Z d   Z d   Z d   Z RS(   Nc         C   s7   t  i t d   } |  i | d d  | i   d  S(   Ns
   185test.dbt   1(   t   bsddb185t   hashopent   findfilet   dbt   selft   assertEqualt   close(   R   R   (    (    t/   /mit/python/lib/python2.4/test/test_bsddb185.pyt   test_open_existing_hash   s    c         C   s#   |  i t i t d   d  d  S(   Ns
   185test.dbR   (   R   R   t   whichdbR   (   R   (    (    R	   t   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   tmpdirt   ost   patht   joint   dbfilet   anydbmt   openR   R   t   ftypeR   t   assertNotEqualt   shutilt   rmtree(   R   R   R   R   (    (    R	   t   test_anydbm_create   s     (   t   __name__t
   __module__R
   R   R   (    (    (    R	   R       s   		c           C   s   t  t  d  S(   N(   t   run_unittestR    (    (    (    R	   t	   test_main'   s    t   __main__(   t   __doc__t   test.test_supportt   verboseR   R   t   unittestR   R   R   R   R   R   t   TestCaseR    R   R   (   R   R#   R   R$   R   R   R   R    R   R   R   R   (    (    R	   t   ?   s   								