3
_½µ_Ï  ã               @   sü   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 jjeedd	iƒd
d„ ƒƒƒZe jjeedd	iƒdd„ ƒƒƒZe jjeedd	iƒdd„ ƒƒƒZe jjeedd	iƒdd„ ƒƒƒZe jjeedd	iƒdd„ ƒƒƒZe jjedd„ ƒƒZdS )é    N)Ú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   ú6/tmp/pip-install-xpigntgx/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_insert3   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_removeF   s    
r   )r   r   r   )ZpytestZh5pyr   Zh5py.tests.commonr   r   ÚmarkZskipifÚversionZhdf5_version_tupleZ
pytestmarkZmpi_skipr   r   r   r   r   r   r   r   r   r   Ú<module>
   s,   