3
8Ad]¿  ã               @   sd   d Z ddlmZ ddlZddlmZmZmZ ddlm	Z	 G dd„ deƒZ
G dd	„ d	e	ƒZd
d„ ZdS )z&
Test cases for the Controller class.
é    )Úabsolute_importN)Ú	HasTraitsÚInstanceÚStr)Ú
Controllerc               @   s   e Zd ZedƒZdS )ÚFooModelZhalloN)Ú__name__Ú
__module__Ú__qualname__r   Úmy_str© r   r   úz/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/traitsui-6.1.2-py3.6.egg/traitsui/tests/test_controller.pyr      s   r   c               @   s    e Zd ZdZeeƒZdd„ ZdS )ÚFooControllerz& Test dialog that does nothing useful.c             C   s
   t dd�S )NÚmeh)r   )r   )Úselfr   r   r   Ú_model_default"   s    zFooController._model_defaultN)r   r	   r
   Ú__doc__r   r   Úmodelr   r   r   r   r   r      s   r   c              C   sJ   t ƒ } tjj| jƒ tjj| jjdƒ tƒ }t |d�} tjj| j|ƒ d S )Nr   )r   )	r   ÚnoseÚtoolsZassert_is_not_noner   Úassert_equalr   r   Z	assert_is)ZdialogZ	new_modelr   r   r   Útest_construction&   s    
r   )r   Ú
__future__r   r   Z
traits.apir   r   r   Ztraitsui.apir   r   r   r   r   r   r   r   Ú<module>   s   	