def assert_equal_none(logical_line):
 res = (asse_equal_start_with_none_re.match(logical_line) or asse_equal_end_with_none_re.match(logical_line))
 if res:
  (yield (0, 'G318: assertEqual(A, None) or assertEqual(None, A) sentences not allowed'))

def assert_equal_none ( logical_line ) : res = ( asse_equal_start_with_none_re . match ( logical_line ) or asse_equal_end_with_none_re . match ( logical_line ) ) if res : ( yield ( 0 , 'G318: assertEqual(A, None) or assertEqual(None, A) sentences not allowed' ) )
check for assertequal or assertequal sentences n318 .