ó
4¶†\c           @   s:   d  d l  m Z d  d l m Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t	   IsLiteral(   t   TestCaset   Testc           B   s  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 RS(   c         C   s   |  j  d t ƒ d  S(   NsC   
        x = 'foo'
        if x is 'foo':
            pass
        (   t   flakesR    (   t   self(    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_str   s    c         C   s   |  j  d t ƒ d  S(   NsE   
        x = b'foo'
        if x is b'foo':
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_bytes   s    c         C   s   |  j  d t ƒ d  S(   NsE   
        x = u'foo'
        if x is u'foo':
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_unicode   s    c         C   s   |  j  d t ƒ d  S(   Ns=   
        x = 10
        if x is 10:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_int   s    c         C   s   |  j  d ƒ d  S(   NsA   
        x = True
        if x is True:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_true"   s    c         C   s   |  j  d ƒ d  S(   NsC   
        x = False
        if x is False:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_false)   s    c         C   s   |  j  d t ƒ d  S(   NsG   
        x = 'foo'
        if x is not 'foo':
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_not_str0   s    c         C   s   |  j  d t ƒ d  S(   NsI   
        x = b'foo'
        if x is not b'foo':
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_not_bytes7   s    c         C   s   |  j  d t ƒ d  S(   NsI   
        x = u'foo'
        if x is not u'foo':
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_not_unicode>   s    c         C   s   |  j  d t ƒ d  S(   NsA   
        x = 10
        if x is not 10:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_not_intE   s    c         C   s   |  j  d ƒ d  S(   NsE   
        x = True
        if x is not True:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_not_trueL   s    c         C   s   |  j  d ƒ d  S(   NsG   
        x = False
        if x is not False:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_is_not_falseS   s    c         C   s   |  j  d t ƒ d  S(   NsC   
        x = 'foo'
        if 'foo' is x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_strZ   s    c         C   s   |  j  d t ƒ d  S(   NsE   
        x = b'foo'
        if b'foo' is x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_bytesa   s    c         C   s   |  j  d t ƒ d  S(   NsE   
        x = u'foo'
        if u'foo' is x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_unicodeh   s    c         C   s   |  j  d t ƒ d  S(   Ns=   
        x = 10
        if 10 is x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_into   s    c         C   s   |  j  d ƒ d  S(   NsA   
        x = True
        if True is x:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_truev   s    c         C   s   |  j  d ƒ d  S(   NsC   
        x = False
        if False is x:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_false}   s    c         C   s   |  j  d t ƒ d  S(   NsG   
        x = 'foo'
        if 'foo' is not x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_not_str„   s    c         C   s   |  j  d t ƒ d  S(   NsI   
        x = b'foo'
        if b'foo' is not x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_not_bytes‹   s    c         C   s   |  j  d t ƒ d  S(   NsI   
        x = u'foo'
        if u'foo' is not x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_not_unicode’   s    c         C   s   |  j  d t ƒ d  S(   NsA   
        x = 10
        if 10 is not x:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_not_int™   s    c         C   s   |  j  d ƒ d  S(   NsE   
        x = True
        if True is not x:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_not_true    s    c         C   s   |  j  d ƒ d  S(   NsG   
        x = False
        if False is not x:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_left_is_not_false§   s    c         C   s   |  j  d ƒ d  S(   NsB   
        x = 5
        if x is True < 4:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_chained_operators_is_true®   s    c         C   s   |  j  d t ƒ d  S(   NsC   
        x = 5
        if x is 'foo' < 4:
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   test_chained_operators_is_strµ   s    c         C   s   |  j  d ƒ d  S(   NsB   
        x = 5
        if 4 < x is True:
            pass
        (   R   (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt"   test_chained_operators_is_true_end¼   s    c         C   s   |  j  d t ƒ d  S(   NsC   
        x = 5
        if 4 < x is 'foo':
            pass
        (   R   R    (   R   (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt!   test_chained_operators_is_str_endÃ   s    (   t   __name__t
   __module__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<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyR      s8   																											N(   t   pyflakes.messagesR    t   pyflakes.test.harnessR   R   (    (    (    s<   lib/python2.7/site-packages/pyflakes/test/test_is_literal.pyt   <module>   s   