a
    §ˆcë  ã                   @   s*   d dl Z ddlmZ G dd„ de jƒZdS )é    Né   )ÚSystemMetricsc                   @   s,   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	S )
ÚTestSystemMetricsc                 C   s   t ƒ | _d S )N)r   Úmetrics)Úself© r   úc/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/tests/test_system_metrics.pyÚsetUp   s    zTestSystemMetrics.setUpc                 C   s   | j j}|  |d¡ d S ©Nr   )r   Zscreen_widthÚassertGreaterEqual)r   Úwidthr   r   r   Ú
test_width   s    zTestSystemMetrics.test_widthc                 C   s   | j j}|  |d¡ d S r
   )r   Zscreen_heightr   )r   Úheightr   r   r   Útest_height   s    zTestSystemMetrics.test_heightc                 C   s8   | j j}|  t|ƒddg¡ |  tdd„ |D ƒƒ¡ d S )Né   é   c                 s   s&   | ]}d |  kodkn  V  qdS )r   é   Nr   )Ú.0Zchannelr   r   r   Ú	<genexpr>    ó    z:TestSystemMetrics.test_background_color.<locals>.<genexpr>)r   Zdialog_background_colorZassertInÚlenÚ
assertTrueÚall)r   Úcolorr   r   r   Útest_background_color   s    z'TestSystemMetrics.test_background_colorN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r   r   r      s   r   )ZunittestZsystem_metricsr   ZTestCaser   r   r   r   r   Ú<module>   s   