#NEWLINE# def assert_equal_in( logical_line ) : #NEWLINE# #INDENT# 'Check for assertEqual(A in B, True), assertEqual(True, A in B),\n    assertEqual(A in B, False) or assertEqual(False, A in B) sentences\n\n    N338\n    ' #NEWLINE# 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 ) ) #NEWLINE# if logical_line : #NEWLINE# #INDENT# ( yield ( 0 , 'N338: Use assertIn/NotIn(A, B) rather than assertEqual(A in B, True/False) when checking collection contents.' ) )