ó
'![c        	   @   sĨ   d  Z  d d l j Z d d l Z d d l m Z d d l m Z d d d d d	 d
 d d d g	 Z	 e j
 d d  d    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   MultipleTypesChecker(   t   fix_import_paths0   Redefinition of self.var1 type from int to floats(   Redefinition of var type from int to strs+   Redefinition of myint type from int to bools)   Redefinition of _OK type from bool to strs<   Redefinition of instance type from redefined.MyClass to bools1   Redefinition of SOME_FLOAT type from float to ints)   Redefinition of var3 type from str to ints)   Redefinition of var type from bool to ints+   Redefinition of var4 type from float to strt   scopet   modulec         C   s   t  S(   N(   R    (   t   checker(    (    sD   lib/python2.7/site-packages/pylint/test/extensions/test_redefined.pyR      s    c         C   s   d g S(   Nt   I(    (   t   disable(    (    sD   lib/python2.7/site-packages/pylint/test/extensions/test_redefined.pyR   $   s    c         C   sÎ   t  j t  j t  j t   d d  } t | g   |  j | g  Wd  QXt |  j j	 d d   } t
 |  d k s t  xG t | t  D]6 \ } } | j d k są t  | j | k s t  q Wd  S(   Nt   datas   redefined.pyt   keyc         S   s   |  j  S(   N(   t   line(   t   item(    (    sD   lib/python2.7/site-packages/pylint/test/extensions/test_redefined.pyt   <lambda>.   s    i	   s   redefined-variable-type(   t   ospt   joint   dirnamet   abspatht   __file__R   t   checkt   sortedt   reportert   messagest   lent   AssertionErrort   zipt   EXPECTEDt   symbolt   msg(   t   lintert	   elif_testt   msgsR   t   expected(    (    sD   lib/python2.7/site-packages/pylint/test/extensions/test_redefined.pyt   test_types_redefined)   s    	(   t   __doc__t   os.patht   pathR   t   pytestt)   pylint.extensions.redefined_variable_typeR    t   pylint.lintR   R   t   fixtureR   R   R   (    (    (    sD   lib/python2.7/site-packages/pylint/test/extensions/test_redefined.pyt   <module>   s    	