ó
\c           @@  sÂ   d  d l  m Z y d  d l Z Wn e k
 r? d  d l Z n Xd  d l m Z m Z d d l	 m
 Z
 d e
 f d     YZ d e
 f d	     YZ d
 e
 f d     YZ d e
 f d     YZ d S(   i    (   t   absolute_importN(   t   h5pt   h5fi   (   t   TestCaset
   TestLibverc           B@  s   e  Z d  Z d   Z RS(   s5   
        Feature: Setting/getting lib ver bounds
    c         C@  sN   t  j t  j  } | j t j t j  |  j t j t j f | j    d S(   s    Test libver bounds set/get N(	   R   t   createt   FILE_ACCESSt   set_libver_boundsR   t   LIBVER_EARLIESTt   LIBVER_LATESTt   assertEqualt   get_libver_bounds(   t   selft   plist(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyt   test_libver   s    (   t   __name__t
   __module__t   __doc__R   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyR      s   t   TestDAc           B@  s   e  Z d  Z d   Z RS(   sU   
    Feature: setting/getting chunk cache size on a dataset access property list
    c         C@  sZ   t  j t  j  } d } d } d } | j | | |  |  j | | | f | j    d S(   s   test get/set chunk cache i'  i@B g      ā?N(   R   R   t   DATASET_ACCESSt   set_chunk_cacheR
   t   get_chunk_cache(   R   t   dalistt   nslotst   nbytest   w0(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyt   test_chunk_cache'   s    (   R   R   R   R   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyR   #   s   t   TestFAc           B@  s    e  Z d  Z d   Z d   Z RS(   sL   
    Feature: setting/getting mdc config on a file access property list
    c         C@  s/   t  j t  j  } | j   } | j |  d S(   s   test get/set mdc config N(   R   R   R   t   get_mdc_configt   set_mdc_config(   R   t   falistt   config(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyt   test_mdc_config6   s    c         C@  sN   t  j t  j  } d } d } | j | |  |  j | | f | j    d S(   s   test get/set chunk cache i
   i   Ni (  i   (   R   R   R   t   set_alignmentR
   t   get_alignment(   R   R   t	   thresholdt	   alignment(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyt   test_set_alignment=   s    (   R   R   R   R    R%   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyR   2   s   	t   TestPLc           B@  s   e  Z d    Z d   Z RS(   c         C@  s  t  j t  j  } | j t  |  j t | j    | j t  |  j t | j    t  j t  j  } | j t  |  j t | j    | j t  |  j t | j    t  j t  j	  } | j t  |  j t | j    | j t  |  j t | j    d S(   s:   
        tests if the object track times  set/get
        N(
   R   R   t   GROUP_CREATEt   set_obj_track_timest   FalseR
   t   get_obj_track_timest   Truet   DATASET_CREATEt   OBJECT_CREATE(   R   t   gcidt   dcidt   ocid(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyt   test_obj_track_timesI   s    c         C@  sĄ   t  j t  j  } | j d  |  j d | j    t  j t  j B} | j |  |  j | | j    t  j t  j  } | j |  |  j | | j    d S(   s7   
        tests the link creation order set/get
        i    N(	   R   R   R'   t   set_link_creation_orderR
   t   get_link_creation_ordert   CRT_ORDER_TRACKEDt   CRT_ORDER_INDEXEDt   FILE_CREATE(   R   R.   t   flagst   fcpl(    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyt   test_link_creation_trackingd   s    (   R   R   R1   R9   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyR&   H   s   	(   t
   __future__R    t	   unittest2t   utt   ImportErrort   unittestt   h5pyR   R   t   commonR   R   R   R   R&   (    (    (    s6   lib/python2.7/site-packages/h5py/tests/old/test_h5p.pyt   <module>
   s   