3
½ìœ]s  ã               @   sØ   d dl mZ d dlZd dlZd dlmZ d dlmZmZ ejj	ej
jdk dd�Zeed	d
iƒdd„ ƒƒZeed	d
iƒdd„ ƒƒZeed	d
iƒdd„ ƒƒZeed	d
iƒdd„ ƒƒZeed	d
iƒdd„ ƒƒZedd„ ƒZdS )é    )Úabsolute_importN)Úh5pl)ÚinsubprocessÚsubproc_envé   é
   zHDF5 1.10.1+ required)ÚreasonZHDF5_PLUGIN_PATHZh5py_plugin_testc             C   s&   t jƒ dkst‚t jdƒdks"t‚d S )Nr   r   s   h5py_plugin_test)r   ÚsizeÚAssertionErrorÚget)Úrequest© r   ú4/tmp/pip-build-pcqn41bp/h5py/h5py/tests/test_h5pl.pyÚtest_default   s    r   c             C   sB   t jdƒ t jƒ dkst‚t jdƒdks,t‚t jdƒdks>t‚d S )Ns   /opt/hdf5/vendor-pluginé   r   s   h5py_plugin_testr   )r   Úappendr	   r
   r   )r   r   r   r   Útest_append    s    
r   c             C   sB   t jdƒ t jƒ dkst‚t jdƒdks,t‚t jdƒdks>t‚d S )Ns   /opt/hdf5/vendor-pluginr   r   r   s   h5py_plugin_test)r   Úprependr	   r
   r   )r   r   r   r   Útest_prepend)   s    
r   c             C   sD   t jddƒ t jƒ dkst‚t jdƒdks.t‚t jdƒdks@t‚d S )Ns   /opt/hdf5/vendor-pluginr   r   r   s   h5py_plugin_test)r   Úinsertr	   r
   r   )r   r   r   r   Útest_insert2   s    r   c             C   s2   t jddƒ t jƒ dkst‚t jdƒdks.t‚d S )Ns   /opt/hdf5/vendor-pluginr   r   )r   Úreplacer	   r
   r   )r   r   r   r   Útest_replace;   s    r   c             C   s   t jdƒ t jƒ dkst‚d S )Nr   )r   Úremover	   r
   )r   r   r   r   Útest_removeC   s    
r   )r   r   r   )Ú
__future__r   ZpytestZh5pyr   Zh5py.tests.commonr   r   ÚmarkZskipifÚversionZhdf5_version_tupleZ
pytestmarkr   r   r   r   r   r   r   r   r   r   Ú<module>
   s"   