U
    fw%Zä  ã                   @   s&   d dl Z d dlZG dd„ de jƒZdS )é    Nc                   @   s4   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ ZdS )ÚIntegerTestsc                 C   s   t  d¡| _d S )NÚfoo)Ú	ttystatusZIntegerÚw©Úself© r   ú9/usr/lib/python3/dist-packages/ttystatus/integer_tests.pyÚsetUp   s    zIntegerTests.setUpc                 C   s   |   | jj¡ d S )N)ZassertFalser   Zstatic_widthr   r   r   r	   Útest_is_not_static_width   s    z%IntegerTests.test_is_not_static_widthc                 C   s   |   | j d¡d¡ d S )Nr   ú#)ÚassertEqualr   Úrenderr   r   r   r	   Útest_is_error_initially   s    z$IntegerTests.test_is_error_initiallyc                 C   s(   | j  ddi¡ |  | j  d¡d¡ d S )Nr   é{   r   Z123©r   Úupdater   r   r   r   r   r	   Útest_updates!   s    zIntegerTests.test_updatesc                 C   s(   | j  ddi¡ |  | j  d¡d¡ d S )Nr   Zbarr   r   r   r   r   r   r	   Ú1test_becomes_error_symbol_if_value_is_not_integer%   s    z>IntegerTests.test_becomes_error_symbol_if_value_is_not_integerN)Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   r   r   r   r   r	   r      s
   r   )Zunittestr   ZTestCaser   r   r   r   r	   Ú<module>   s   