(logical_line)
Check for assertEqual(A is not None) sentences M302
Check for assertEqual(A is not None) sentences M302
Check for assertEqual ( A is not None ) sentences M302
def assert_equal_not_none(logical_line):
    """Check for assertEqual(A is not None) sentences M302"""
    msg = "M302: assertEqual(A is not None) sentences not allowed."
    res = assert_equal_with_is_not_none_re.search(logical_line)
    if res:
        yield (0, msg)
def assert_equal_not_none ( logical_line ) : msg = "M302: assertEqual(A is not None) sentences not allowed." res = assert_equal_with_is_not_none_re . search ( logical_line ) if res : yield ( 0 , msg )