
\c           @@  sR   d  Z  d d l m Z d d l Z d d l m Z m Z d e f d     YZ d S(   s(   
Tests that deprecations work correctly
i    (   t   absolute_importNi   (   t   utt   TestCaset   TestDeprecationsc           B@  s   e  Z d    Z RS(   c         C@  s.   d } |  j  t |   } t j } Wd  QXd  S(   Nsm   The h5py.highlevel module is deprecated, code should import directly from h5py, e.g. 'from h5py import File'.(   t   assertWarnsRegext   H5pyDeprecationWarningt   h5pyt	   highlevel(   t   selft   warning_messaget   warningt   hl(    (    s=   lib/python2.7/site-packages/h5py/tests/hl/test_deprecation.pyt   test_highlevel_access   s    (   t   __name__t
   __module__R   (    (    (    s=   lib/python2.7/site-packages/h5py/tests/hl/test_deprecation.pyR      s   (   t   __doc__t
   __future__R    R   t   commonR   R   R   (    (    (    s=   lib/python2.7/site-packages/h5py/tests/hl/test_deprecation.pyt   <module>   s   