def nova_except_format_assert(logical_line):
 if logical_line.startswith('self.assertRaises(Exception'):
  (yield (1, 'N202: assertRaises Exception too broad'))

def nova_except_format_assert ( logical_line ) : if logical_line . startswith ( 'self.assertRaises(Exception' ) : ( yield ( 1 , 'N202: assertRaises Exception too broad' ) )
check for assertraises(exception .