#NEWLINE# def assert_raises_regexp( logical_line ) : #NEWLINE# #INDENT# 'Check for usage of deprecated assertRaisesRegexp\n\n    N335\n    ' #NEWLINE# res = asse_raises_regexp . search ( logical_line ) #NEWLINE# if res : #NEWLINE# #INDENT# ( yield ( 0 , 'N335: assertRaisesRegex must be used instead of assertRaisesRegexp' ) )