a
    ¦ˆcÿ  ã                   @   s>   d dl Z d dlmZmZ G dd„ deƒZG dd„ de jƒZdS )é    N)Ú	HasTraitsÚIntc                   @   s   e Zd ZedƒZdS )ÚAé   N)Ú__name__Ú
__module__Ú__qualname__r   Úx© r
   r
   úe/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traits/tests/test_trait_exceptions.pyr      s   r   c                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚTestGetAttrc                 C   s   t ƒ | _d S )N)r   Úa)Úselfr
   r
   r   ÚsetUp   s    zTestGetAttr.setUpc                 C   sp   |   | j d¡d¡ |  t¡�}| j d¡ W d   ƒ n1 s@0    Y  t|jƒ}|  d|¡ |  d|¡ d S )Nr	   r   é   Ú2Úint)ÚassertEqualr   Ú__getattribute__ÚassertRaisesÚ	TypeErrorÚstrÚ	exceptionZassertIn)r   ÚeZexception_msgr
   r
   r   Útest_bad__getattribute__   s    *
z$TestGetAttr.test_bad__getattribute__N)r   r   r   r   r   r
   r
   r
   r   r      s   r   )ZunittestZ
traits.apir   r   r   ZTestCaser   r
   r
   r
   r   Ú<module>   s   