def assert_equal_in(logical_line):
 res = (asse_equal_in_start_with_true_or_false_re.search(logical_line) or asse_equal_in_end_with_true_or_false_re.search(logical_line))
 if res:
  (yield (0, 'N338: Use assertIn/NotIn(A, B) rather than assertEqual(A in B, True/False) when checking collection contents.'))

def assert_equal_in ( logical_line ) : res = ( asse_equal_in_start_with_true_or_false_re . search ( logical_line ) or asse_equal_in_end_with_true_or_false_re . search ( logical_line ) ) if res : ( yield ( 0 , 'N338: Use assertIn/NotIn(A, B) rather than assertEqual(A in B, True/False) when checking collection contents.' ) )
check for assertequal .