o
    ýÑÐb  ã                   @   sH   d Z ddlZe d¡G dd„ dejƒƒZe d¡G dd„ dejƒƒZdS )zÕ
http://www.logilab.org/ticket/355
If you are using assertTrue or assertFalse and the first argument is a
constant(like a string), then the assert will always be true. Therefore,
it should emit a warning message.
é    Nzdon't run thisc                   @   s   e Zd Zdd„ ZdS )ÚTestsc                 C   sl   d}|   d|¡ |  d|¡ |   d|¡ |  d|¡ |  d|¡ |   d|¡ |   d|v |¡ |   ||¡ dS )	z Simple test zIt should be assertEqualz"I meant assertEqual not assertTruez#I meant assertEqual not assertFalseTFNr   z	should be)Ú
assertTrueZassertFalse)ÚselfZsome_var© r   úo/var/www/secure340b-portal/env/lib/python3.10/site-packages/pylint/test/functional/redundant_unittest_assert.pyÚtest_something   s   zTests.test_somethingN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s    r   c                   @   s   e Zd ZdZdd„ ZdS )ÚRegressionWithArgsz6Don't fail if the bound method doesn't have arguments.c                 C   s   |   ¡  d S )N)Úrun)r   r   r   r   Útest%   s   zRegressionWithArgs.testN)r   r	   r
   Ú__doc__r   r   r   r   r   r   !   s    r   )r   ZunittestÚskipZTestCaser   r   r   r   r   r   Ú<module>   s   