관리-도구
편집 파일: fix_asserts.cpython-34.pyc
� i f� � @ s� d Z d d l m Z d d l m Z e d d d d d d d d d d d d d d d d d d d d d d d d d d d d � Z Gd d � d e � Z d S)z5Fixer that replaces deprecated unittest method names.� )�BaseFix)�NameZassert_Z assertTrueZassertEqualsZassertEqualZassertNotEqualsZassertNotEqualZassertAlmostEqualsZassertAlmostEqualZassertNotAlmostEqualsZassertNotAlmostEqualZassertRegexpMatchesZassertRegexZassertRaisesRegexpZassertRaisesRegexZfailUnlessEqualZfailIfEqualZfailUnlessAlmostEqualZfailIfAlmostEqualZ failUnlessZfailUnlessRaisesZassertRaisesZfailIfZassertFalsec @ s8 e Z d Z d d j e e e � � Z d d � Z d S)� FixAssertszH power< any+ trailer< '.' meth=(%s)> any* > �|c C s8 | d d } | j t t t | � d | j �� d S)N�meth� �prefix)�replacer �NAMES�strr )�selfZnodeZresults�name� r �>/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_asserts.py� transform s zFixAsserts.transformN) �__name__� __module__�__qualname__�join�map�reprr ZPATTERNr r r r r r s r N)�__doc__Z fixer_baser Z fixer_utilr �dictr r r r r r �<module> s$