ó
wÛjc           @   sļ   d  Z  d d l m Z m Z m Z d d l Z e d d e Z d d l Z d d l	 Z	 d d l
 Z
 d d l Z d d l Z d e j f d     YZ d   Z e d	 k rī 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  j t d   } |  j | d d  | j   d  S(   Ns
   185test.dbt   1(   R   t   hashopenR   t   assertEqualt   close(   t   selft   db(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bsddb185.pyt   test_open_existing_hash   s    c         C   s#   |  j  t j t d   d  d  S(   Ns
   185test.dbR   (   R   t   whichdbR   (   R
   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bsddb185.pyt   test_whichdb   s    c         C   so   t  j   } zN t j j | d  } t j | d  j   t j |  } |  j	 | d  Wd  t
 j |  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   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bsddb185.pyt   test_anydbm_create   s    (   t   __name__t
   __module__R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bsddb185.pyR      s   		c           C   s   t  t  d  S(   N(   R    R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/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   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bsddb185.pyt   <module>   s   	