def no_assert_true_false_is_not(logical_line):
 _re = re.compile('assert(True|False)\\(.+\\s+is\\s+(not\\s+)?.+\\)$')
 if _re.search(logical_line):
  (yield (0, 'N356: assertTrue(A is|is not B) or assertFalse(A is|is not B) sentences must not be used. Use assertIs(A, B) or assertIsNot(A, B) instead'))

def no_assert_true_false_is_not ( logical_line ) : _re = re . compile ( 'assert(True|False)\\(.+\\s+is\\s+(not\\s+)?.+\\)$' ) if _re . search ( logical_line ) : ( yield ( 0 , 'N356: assertTrue(A is|is not B) or assertFalse(A is|is not B) sentences must not be used. Use assertIs(A, B) or assertIsNot(A, B) instead' ) )
enforce use of assertis/assertisnot .