ó
'![c           @   sY   d  Z  d d l j Z d d l Z d d l m Z e j d d ƒ d „  ƒ Z d „  Z	 d S(   sC   Tests for the pylint checker in :mod:`pylint.extensions.check_elif
iÿÿÿÿN(   t   ElseifUsedCheckert   scopet   modulec         C   s   t  S(   N(   R    (   t   checker(    (    sF   lib/python2.7/site-packages/pylint/test/extensions/test_elseif_used.pyR      s    c         C   sÌ   t  j t  j t  j t ƒ ƒ d d ƒ } |  j | g ƒ |  j j } t | ƒ d k s[ t	 ‚ x8 | D]0 } | j
 d k s} t	 ‚ | j d k sb t	 ‚ qb W| d j d k s¯ t	 ‚ | d j d	 k sÈ t	 ‚ d  S(
   Nt   datas   elif.pyi   s   else-if-useds*   Consider using "elif" instead of "else if"i    i	   i   i   (   t   ospt   joint   dirnamet   abspatht   __file__t   checkt   reportert   messagest   lent   AssertionErrort   symbolt   msgt   line(   t   lintert	   elif_testt   msgsR   (    (    sF   lib/python2.7/site-packages/pylint/test/extensions/test_elseif_used.pyt   test_elseif_message   s    	(
   t   __doc__t   os.patht   pathR   t   pytestt   pylint.extensions.check_elifR    t   fixtureR   R   (    (    (    sF   lib/python2.7/site-packages/pylint/test/extensions/test_elseif_used.pyt   <module>	   s
   