
\c           @@  s   d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l m Z d d l m Z d e f d     YZ	 d e f d	     YZ
 d S(
   i    (   t   absolute_importN(   t   Filei   (   t   TestCaset
   TestFileIDc           B@  s   e  Z d    Z d   Z RS(   c      	   C@  sH   t  d d d d t * } |  j t   | j j   Wd  QXWd  QXd  S(   Ns   TestFileID.test_descriptor_coret   drivert   coret   backing_store(   R   t   Falset   assertRaisest   NotImplementedErrort   idt   get_vfd_handle(   t   selft   f(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyt   test_descriptor_core   s    c         C@  s   t  j d  } t j j | d  } zK t | d d 3 } | j j   } |  j | d  t j	 |  Wd  QXWd  t
 j |  Xd  S(   Ns5   h5py.lowtest.test_h5f.TestFileID.test_descriptor_sec2s   test.h5R   t   sec2i    (   t   tempfilet   mkdtempt   ost   patht   joinR   R
   R   t   assertNotEqualt   fsynct   shutilt   rmtree(   R   t   dn_tmpt   fn_h5R   t
   descriptor(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyt   test_descriptor_sec2   s    (   t   __name__t
   __module__R   R   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyR      s   	t   TestCacheConfigc           B@  s#   e  Z d    Z d   Z d   Z RS(   c         C@  sp   t  j d  } t j j | d  } z7 t |  % } | j j   } | j j   } Wd  QXWd  t	 j
 |  Xd  S(   NsA   h5py.lowtest.test_h5f.TestFileID.TestCacheConfig.test_simple_getss   test.h5(   R   R   R   R   R   R   t   _idt   get_mdc_hit_ratet   get_mdc_sizeR   R   (   R   R   R   R   t   hit_ratet   mdc_size(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyt   test_simple_gets'   s    c         C@  s   t  j d  } t j j | d  } zV t |  D } | j j   } | j j   | j j   } | d k ss t	  Wd  QXWd  t
 j |  Xd  S(   NsC   h5py.lowtest.test_h5f.TestFileID.TestCacheConfig.test_hitrate_resets   test.h5i    (   R   R   R   R   R   R   R    R!   t   reset_mdc_hit_rate_statst   AssertionErrorR   R   (   R   R   R   R   R#   (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyt   test_hitrate_reset2   s    c         C@  sq   t  j d  } t j j | d  } z8 t |  & } | j j   } | j j |  Wd  QXWd  t	 j
 |  Xd  S(   NsD   h5py.lowtest.test_h5f.TestFileID.TestCacheConfig.test_mdc_config_gets   test.h5(   R   R   R   R   R   R   R    t   get_mdc_configt   set_mdc_configR   R   (   R   R   R   R   t   conf(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyt   test_mdc_config_get?   s    (   R   R   R%   R(   R,   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyR   &   s   		(   t
   __future__R    R   R   R   t   h5pyR   t   commonR   R   R   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5f.pyt   <module>
   s   