#NEWLINE# @ skip_ignored_lines #NEWLINE# def assert_equal_none( logical_line , physical_line , filename ) : #NEWLINE# #INDENT# 'Check for assertEqual(A, None) or assertEqual(None, A) sentences\n\n    N322\n    ' #NEWLINE# res = ( re_assert_equal_start_with_none . search ( logical_line ) or re_assert_equal_end_with_none . search ( logical_line ) ) #NEWLINE# if logical_line : #NEWLINE# #INDENT# ( yield ( 0 , 'N322 assertEqual(A, None) or assertEqual(None, A) sentences not allowed, you should use assertIsNone(A) instead.' ) )