ó
'![c           @   st   d  Z  d d l j Z d d l Z d d l m Z e j d d  d    Z e j d d  d    Z	 d   Z
 d S(	   sD   Tests for the pylint checker in :mod:`pylint.extensions.emptystring
i˙˙˙˙N(   t   CompareToEmptyStringCheckert   scopet   modulec         C   s   t  S(   N(   R    (   t   checker(    (    sF   lib/python2.7/site-packages/pylint/test/extensions/test_emptystring.pyR      s    c         C   s   d g S(   Nt   I(    (   t   disable(    (    sF   lib/python2.7/site-packages/pylint/test/extensions/test_emptystring.pyR      s    c         C   sÖ   t  j t  j t  j t   d d  } |  j | g  |  j j } d d d d g } t |  t |  k ss t	  x\ t
 | |  D]K \ } } | j d k s¤ t	  | j d k sı t	  | j | k s t	  q Wd  S(	   Nt   datas   empty_string_comparison.pyi   i	   i   i   s   compare-to-empty-strings!   Avoid comparisons to empty string(   t   ospt   joint   dirnamet   abspatht   __file__t   checkt   reportert   messagest   lent   AssertionErrort   zipt   symbolt   msgt   line(   t   lintert	   elif_testt   msgst   expected_linenoR   t   lineno(    (    sF   lib/python2.7/site-packages/pylint/test/extensions/test_emptystring.pyt   test_emptystring_message   s    	(   t   __doc__t   os.patht   pathR   t   pytestt   pylint.extensions.emptystringR    t   fixtureR   R   R   (    (    (    sF   lib/python2.7/site-packages/pylint/test/extensions/test_emptystring.pyt   <module>   s   