ó
ŒwÛjc           @   s  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z e j j Z	 e j j
 d d e ƒZ d „  Z d e j f d „  ƒ  YZ xj e j D]_ Z y e j j
 e d e ƒZ Wn e j k
 rÍ q’ n Xe e d „ Z e e d	 e e ƒ q’ Wd
 „  Z e d k re ƒ  n  d S(   s>   Test script for the whichdb module
   based on test_anydbm.py
iÿÿÿÿNt   anydbmt
   deprecatedc          C   sG   x@ t  j  t d ƒ D]+ }  y t j |  ƒ Wq t k
 r> q Xq Wd  S(   Nt   *(   t   globt   _fnamet   ost   unlinkt   OSError(   t   f(    (    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_whichdb.pyt   _delete_files   s
    t   WhichDBTestCasec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         G   s   t  j j |  | Œ d  S(   N(   t   unittestt   TestCaset   __init__(   t   selft   args(    (    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_whichdb.pyR      s    c         C   s   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_whichdb.pyt   tearDown   s    c         C   s   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_whichdb.pyt   setUp"   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_whichdb.pyR
      s   		c         C   sx   | j  t d ƒ } | j ƒ  |  j | t j t ƒ ƒ | j  t d ƒ } d | d <| j ƒ  |  j | t j t ƒ ƒ d  S(   Nt   ct   wt   1(   t   openR   t   closet   assertEqualt   whichdb(   R   t   namet   modR   (    (    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_whichdb.pyt   test_whichdb_name.   s    


s   test_whichdb_%sc           C   s#   z t  j j t ƒ Wd  t ƒ  Xd  S(   N(   t   testt   test_supportt   run_unittestR
   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_whichdb.pyt	   test_main<   s    t   __main__(   t   __doc__R   t   test.test_supportR   R   R   R   R   t   TESTFNR   t   import_modulet   TrueR    R	   R   R
   t   _namesR   R   t   SkipTestR   t   setattrR!   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_whichdb.pyt   <module>   s&   			