#NEWLINE# def assert_true_or_false_with_in( logical_line ) : #NEWLINE# #INDENT# 'Check for assertTrue/False(A in B), assertTrue/False(A not in B),\n    assertTrue/False(A in B, message) or assertTrue/False(A not in B, message)\n    sentences.\n\n    N334\n    ' #NEWLINE# res = ( asse_true_false_with_in_or_not_in . search ( logical_line ) or asse_true_false_with_in_or_not_in_spaces . search ( logical_line ) ) #NEWLINE# if res : #NEWLINE# #INDENT# ( yield ( 0 , 'N334: Use assertIn/NotIn(A, B) rather than assertTrue/False(A in/not in B) when checking collection contents.' ) )