U
    ³dÑ  ã                   @   sB   d dl mZ d dlZddlmZ d dlmZ G dd„ dejƒZdS )é    )ÚPathNé   )Úutil)Úcrackfortranc                   @   s6   e Zd Ze dddd¡gZddgZdd„ Zd	d
„ ZdS )ÚTestAbstractInterfaceÚtestsÚsrcÚabstract_interfacezfoo.f90Zadd1Zadd2c                 C   s   | j j dd¡dkst‚d S )Né   é   )é   é   )ÚmoduleZ
ops_moduleZfooÚAssertionError)Úself© r   úL/tmp/pip-unpacked-wheel-c1z6a0q8/numpy/f2py/tests/test_abstract_interface.pyÚtest_abstract_interface   s    z-TestAbstractInterface.test_abstract_interfacec                 C   sh   t  dddd¡}t t|ƒg¡}t|ƒdks0t‚t|d d ƒdksHt‚|d d d d d	ksdt‚d S )
Nr   r   r	   zgh18403_mod.f90r   r   ÚbodyÚblockzabstract interface)r   Úgetpathr   ÚstrÚlenr   )r   ZfpathÚmodr   r   r   Útest_parse_abstract_interface   s    
ÿz3TestAbstractInterface.test_parse_abstract_interfaceN)	Ú__name__Ú
__module__Ú__qualname__r   r   ÚsourcesÚskipr   r   r   r   r   r   r      s   r   )	Úpathlibr   ÚtextwrapÚ r   Z
numpy.f2pyr   ZF2PyTestr   r   r   r   r   Ú<module>   s   