a
    §ˆcN  ã                   @   s>   d dl Z d dlmZmZ ddlmZ eG dd„ de jƒƒZdS )é    N)ÚnumpyÚrequires_numpyé   )Ú
ArrayImagec                   @   s<   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ ZdS )ÚTestArrayImagec                 C   s   t jdddd�| _d S )N)é    é@   é   éî   Zuint8)Zdtype)ÚnpÚfullÚdata©Úself© r   ú`/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/tests/test_array_image.pyÚsetUp   s    zTestArrayImage.setUpc                 C   s   t | jƒ}|  |j| j¡ d S ©N)r   r   ZassertIs)r   Úimager   r   r   Ú	test_init   s    
zTestArrayImage.test_initc                 C   s4   |   t¡� tƒ  W d   ƒ n1 s&0    Y  d S r   )ÚassertRaisesÚ	TypeErrorr   r   r   r   r   Útest_init_data_required   s    z&TestArrayImage.test_init_data_requiredc                 C   s    t | jƒ}| ¡ }|  |¡ d S r   )r   r   Zcreate_imageÚassertIsNotNone)r   r   Ztoolkit_imager   r   r   Útest_create_image!   s    
z TestArrayImage.test_create_imagec                 C   s    t | jƒ}| ¡ }|  |¡ d S r   )r   r   Zcreate_bitmapr   )r   r   Zbitmapr   r   r   Útest_create_bitmap(   s    
z!TestArrayImage.test_create_bitmapc                 C   s    t | jƒ}| ¡ }|  |¡ d S r   )r   r   Zcreate_iconr   )r   r   Ziconr   r   r   Útest_create_icon/   s    
zTestArrayImage.test_create_iconN)	Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r   r   r      s   r   )	ZunittestZ$traits.testing.optional_dependenciesr   r   r   Zarray_imager   ZTestCaser   r   r   r   r   Ú<module>   s   