7ec@sdZddlmZddlmZedddddd d d d d dddddddd dd dd ddddddZdefdYZdS(s5Fixer that replaces deprecated unittest method names.i(tBaseFix(tNametassert_t assertTruet assertEqualst assertEqualtassertNotEqualstassertNotEqualtassertAlmostEqualstassertAlmostEqualtassertNotAlmostEqualstassertNotAlmostEqualtassertRegexpMatchest assertRegextassertRaisesRegexptassertRaisesRegextfailUnlessEqualt failIfEqualtfailUnlessAlmostEqualtfailIfAlmostEqualt failUnlesstfailUnlessRaisest assertRaisestfailIft assertFalset FixAssertscBs-eZddjeeeZdZRS(sH power< any+ trailer< '.' meth=(%s)> any* > t|cCs8|dd}|jttt|d|jdS(Ntmethitprefix(treplaceRtNAMEStstrR(tselftnodetresultstname((s1/usr/lib64/python2.7/lib2to3/fixes/fix_asserts.pyt transform s(t__name__t __module__tjointmaptreprRtPATTERNR$(((s1/usr/lib64/python2.7/lib2to3/fixes/fix_asserts.pyRsN(t__doc__t fixer_baseRt fixer_utilRtdictRR(((s1/usr/lib64/python2.7/lib2to3/fixes/fix_asserts.pyts$