o
    ¦ÜÓhÝ  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )Ú	IsLiteral)ÚTestCasec                   @   s  e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd!d"„ Zd#d$„ Zd%d&„ Zd'd(„ Zd)d*„ Zd+d,„ Zd-d.„ Zd/d0„ Zd1d2„ Zd3d4„ Zd5d6„ Zd7d8„ Zd9d:„ Zd;d<„ Z d=d>„ Z!d?S )@ÚTestc                 C   ó   |   dt¡ d S )NzC
        x = 'foo'
        if x is 'foo':
            pass
        ©Úflakesr   ©Úself© r
   úS/var/www/html/ai/venv/lib/python3.10/site-packages/pyflakes/test/test_is_literal.pyÚtest_is_str   ó   üzTest.test_is_strc                 C   r   )NzE
        x = b'foo'
        if x is b'foo':
            pass
        r   r   r
   r
   r   Útest_is_bytes   r   zTest.test_is_bytesc                 C   r   )NzE
        x = u'foo'
        if x is u'foo':
            pass
        r   r   r
   r
   r   Útest_is_unicode   r   zTest.test_is_unicodec                 C   r   )Nz=
        x = 10
        if x is 10:
            pass
        r   r   r
   r
   r   Útest_is_int   r   zTest.test_is_intc                 C   ó   |   d¡ d S )NzA
        x = True
        if x is True:
            pass
        ©r   r   r
   r
   r   Útest_is_true"   ó   zTest.test_is_truec                 C   r   )NzC
        x = False
        if x is False:
            pass
        r   r   r
   r
   r   Útest_is_false)   r   zTest.test_is_falsec                 C   r   )NzG
        x = 'foo'
        if x is not 'foo':
            pass
        r   r   r
   r
   r   Útest_is_not_str0   r   zTest.test_is_not_strc                 C   r   )NzI
        x = b'foo'
        if x is not b'foo':
            pass
        r   r   r
   r
   r   Útest_is_not_bytes7   r   zTest.test_is_not_bytesc                 C   r   )NzI
        x = u'foo'
        if x is not u'foo':
            pass
        r   r   r
   r
   r   Útest_is_not_unicode>   r   zTest.test_is_not_unicodec                 C   r   )NzA
        x = 10
        if x is not 10:
            pass
        r   r   r
   r
   r   Útest_is_not_intE   r   zTest.test_is_not_intc                 C   r   )NzE
        x = True
        if x is not True:
            pass
        r   r   r
   r
   r   Útest_is_not_trueL   r   zTest.test_is_not_truec                 C   r   )NzG
        x = False
        if x is not False:
            pass
        r   r   r
   r
   r   Útest_is_not_falseS   r   zTest.test_is_not_falsec                 C   r   )NzC
        x = 'foo'
        if 'foo' is x:
            pass
        r   r   r
   r
   r   Útest_left_is_strZ   r   zTest.test_left_is_strc                 C   r   )NzE
        x = b'foo'
        if b'foo' is x:
            pass
        r   r   r
   r
   r   Útest_left_is_bytesa   r   zTest.test_left_is_bytesc                 C   r   )NzE
        x = u'foo'
        if u'foo' is x:
            pass
        r   r   r
   r
   r   Útest_left_is_unicodeh   r   zTest.test_left_is_unicodec                 C   r   )Nz=
        x = 10
        if 10 is x:
            pass
        r   r   r
   r
   r   Útest_left_is_into   r   zTest.test_left_is_intc                 C   r   )NzA
        x = True
        if True is x:
            pass
        r   r   r
   r
   r   Útest_left_is_truev   r   zTest.test_left_is_truec                 C   r   )NzC
        x = False
        if False is x:
            pass
        r   r   r
   r
   r   Útest_left_is_false}   r   zTest.test_left_is_falsec                 C   r   )NzG
        x = 'foo'
        if 'foo' is not x:
            pass
        r   r   r
   r
   r   Útest_left_is_not_str„   r   zTest.test_left_is_not_strc                 C   r   )NzI
        x = b'foo'
        if b'foo' is not x:
            pass
        r   r   r
   r
   r   Útest_left_is_not_bytes‹   r   zTest.test_left_is_not_bytesc                 C   r   )NzI
        x = u'foo'
        if u'foo' is not x:
            pass
        r   r   r
   r
   r   Útest_left_is_not_unicode’   r   zTest.test_left_is_not_unicodec                 C   r   )NzA
        x = 10
        if 10 is not x:
            pass
        r   r   r
   r
   r   Útest_left_is_not_int™   r   zTest.test_left_is_not_intc                 C   r   )NzE
        x = True
        if True is not x:
            pass
        r   r   r
   r
   r   Útest_left_is_not_true    r   zTest.test_left_is_not_truec                 C   r   )NzG
        x = False
        if False is not x:
            pass
        r   r   r
   r
   r   Útest_left_is_not_false§   r   zTest.test_left_is_not_falsec                 C   r   )NzB
        x = 5
        if x is True < 4:
            pass
        r   r   r
   r
   r   Útest_chained_operators_is_true®   r   z#Test.test_chained_operators_is_truec                 C   r   )NzC
        x = 5
        if x is 'foo' < 4:
            pass
        r   r   r
   r
   r   Útest_chained_operators_is_strµ   r   z"Test.test_chained_operators_is_strc                 C   r   )NzB
        x = 5
        if 4 < x is True:
            pass
        r   r   r
   r
   r   Ú"test_chained_operators_is_true_end¼   r   z'Test.test_chained_operators_is_true_endc                 C   r   )NzC
        x = 5
        if 4 < x is 'foo':
            pass
        r   r   r
   r
   r   Ú!test_chained_operators_is_str_endÃ   r   z&Test.test_chained_operators_is_str_endc                 C   r   )NzG            x = 5
            if x is ():
                pass
        r   r   r
   r
   r   Útest_is_tuple_constantÊ   r   zTest.test_is_tuple_constantc                 C   r   )Nz^            x = 5
            if x is (1, '2', True, (1.5, ())):
                pass
        r   r   r
   r
   r   Ú+test_is_tuple_constant_containing_constantsÑ   r   z0Test.test_is_tuple_constant_containing_constantsc                 C   r   )NzI            x = 5
            if x is (x,):
                pass
        r   r   r
   r
   r   Ú%test_is_tuple_containing_variables_okØ   s   z*Test.test_is_tuple_containing_variables_okN)"Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r
   r
   r
   r   r      s@    r   N)Úpyflakes.messagesr   Úpyflakes.test.harnessr   r   r
   r
   r
   r   Ú<module>   s    