
    g                     2    d dl mZ d dlmZ  G d de      Zy)    )	IsLiteral)TestCasec                       e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Z d Z!y )!Testc                 0    | j                  dt               y )NzC
        x = 'foo'
        if x is 'foo':
            pass
        flakesr   selfs    `/var/www/html/brdwt/brdwt/brdwtenv/lib/python3.12/site-packages/pyflakes/test/test_is_literal.pytest_is_strzTest.test_is_str         		    c                 0    | j                  dt               y )NzE
        x = b'foo'
        if x is b'foo':
            pass
        r   r
   s    r   test_is_byteszTest.test_is_bytes   r   r   c                 0    | j                  dt               y )NzE
        x = u'foo'
        if x is u'foo':
            pass
        r   r
   s    r   test_is_unicodezTest.test_is_unicode   r   r   c                 0    | j                  dt               y )Nz=
        x = 10
        if x is 10:
            pass
        r   r
   s    r   test_is_intzTest.test_is_int   r   r   c                 &    | j                  d       y )NzA
        x = True
        if x is True:
            pass
        r	   r
   s    r   test_is_truezTest.test_is_true"         	r   c                 &    | j                  d       y )NzC
        x = False
        if x is False:
            pass
        r   r
   s    r   test_is_falsezTest.test_is_false)   r   r   c                 0    | j                  dt               y )NzG
        x = 'foo'
        if x is not 'foo':
            pass
        r   r
   s    r   test_is_not_strzTest.test_is_not_str0   r   r   c                 0    | j                  dt               y )NzI
        x = b'foo'
        if x is not b'foo':
            pass
        r   r
   s    r   test_is_not_byteszTest.test_is_not_bytes7   r   r   c                 0    | j                  dt               y )NzI
        x = u'foo'
        if x is not u'foo':
            pass
        r   r
   s    r   test_is_not_unicodezTest.test_is_not_unicode>   r   r   c                 0    | j                  dt               y )NzA
        x = 10
        if x is not 10:
            pass
        r   r
   s    r   test_is_not_intzTest.test_is_not_intE   r   r   c                 &    | j                  d       y )NzE
        x = True
        if x is not True:
            pass
        r   r
   s    r   test_is_not_truezTest.test_is_not_trueL   r   r   c                 &    | j                  d       y )NzG
        x = False
        if x is not False:
            pass
        r   r
   s    r   test_is_not_falsezTest.test_is_not_falseS   r   r   c                 0    | j                  dt               y )NzC
        x = 'foo'
        if 'foo' is x:
            pass
        r   r
   s    r   test_left_is_strzTest.test_left_is_strZ   r   r   c                 0    | j                  dt               y )NzE
        x = b'foo'
        if b'foo' is x:
            pass
        r   r
   s    r   test_left_is_byteszTest.test_left_is_bytesa   r   r   c                 0    | j                  dt               y )NzE
        x = u'foo'
        if u'foo' is x:
            pass
        r   r
   s    r   test_left_is_unicodezTest.test_left_is_unicodeh   r   r   c                 0    | j                  dt               y )Nz=
        x = 10
        if 10 is x:
            pass
        r   r
   s    r   test_left_is_intzTest.test_left_is_into   r   r   c                 &    | j                  d       y )NzA
        x = True
        if True is x:
            pass
        r   r
   s    r   test_left_is_truezTest.test_left_is_truev   r   r   c                 &    | j                  d       y )NzC
        x = False
        if False is x:
            pass
        r   r
   s    r   test_left_is_falsezTest.test_left_is_false}   r   r   c                 0    | j                  dt               y )NzG
        x = 'foo'
        if 'foo' is not x:
            pass
        r   r
   s    r   test_left_is_not_strzTest.test_left_is_not_str   r   r   c                 0    | j                  dt               y )NzI
        x = b'foo'
        if b'foo' is not x:
            pass
        r   r
   s    r   test_left_is_not_byteszTest.test_left_is_not_bytes   r   r   c                 0    | j                  dt               y )NzI
        x = u'foo'
        if u'foo' is not x:
            pass
        r   r
   s    r   test_left_is_not_unicodezTest.test_left_is_not_unicode   r   r   c                 0    | j                  dt               y )NzA
        x = 10
        if 10 is not x:
            pass
        r   r
   s    r   test_left_is_not_intzTest.test_left_is_not_int   r   r   c                 &    | j                  d       y )NzE
        x = True
        if True is not x:
            pass
        r   r
   s    r   test_left_is_not_truezTest.test_left_is_not_true   r   r   c                 &    | j                  d       y )NzG
        x = False
        if False is not x:
            pass
        r   r
   s    r   test_left_is_not_falsezTest.test_left_is_not_false   r   r   c                 &    | j                  d       y )NzB
        x = 5
        if x is True < 4:
            pass
        r   r
   s    r   test_chained_operators_is_truez#Test.test_chained_operators_is_true   r   r   c                 0    | j                  dt               y )NzC
        x = 5
        if x is 'foo' < 4:
            pass
        r   r
   s    r   test_chained_operators_is_strz"Test.test_chained_operators_is_str   r   r   c                 &    | j                  d       y )NzB
        x = 5
        if 4 < x is True:
            pass
        r   r
   s    r   "test_chained_operators_is_true_endz'Test.test_chained_operators_is_true_end   r   r   c                 0    | j                  dt               y )NzC
        x = 5
        if 4 < x is 'foo':
            pass
        r   r
   s    r   !test_chained_operators_is_str_endz&Test.test_chained_operators_is_str_end   r   r   c                 0    | j                  dt               y )NzG            x = 5
            if x is ():
                pass
        r   r
   s    r   test_is_tuple_constantzTest.test_is_tuple_constant   r   r   c                 0    | j                  dt               y )Nz^            x = 5
            if x is (1, '2', True, (1.5, ())):
                pass
        r   r
   s    r   +test_is_tuple_constant_containing_constantsz0Test.test_is_tuple_constant_containing_constants   r   r   c                 &    | j                  d       y )NzI            x = 5
            if x is (x,):
                pass
        r   r
   s    r   %test_is_tuple_containing_variables_okz*Test.test_is_tuple_containing_variables_ok   s      	r   N)"__name__
__module____qualname__r   r   r   r   r   r   r   r   r!   r#   r%   r'   r)   r+   r-   r/   r1   r3   r5   r7   r9   r;   r=   r?   rA   rC   rE   rG   rI   rK   rM    r   r   r   r      s    r   r   N)pyflakes.messagesr   pyflakes.test.harnessr   r   rQ   r   r   <module>rT      s    ' *Y8 Yr   