@flake8ext
def check_assertequal_for_httpcode(logical_line, filename):
 msg = 'N332: Use assertEqual(expected_http_code, observed_http_code) instead of assertEqual(observed_http_code, expected_http_code)'
 if ('neutron/tests/' in filename):
  if re.search('assertEqual\\(\\s*[^,]*,[^,]*HTTP[^\\.]*\\.code\\s*\\)', logical_line):
   (yield (0, msg))

@ flake8ext def check_assertequal_for_httpcode ( logical_line , filename ) : msg = 'N332: Use assertEqual(expected_http_code, observed_http_code) instead of assertEqual(observed_http_code, expected_http_code)' if ( 'neutron/tests/' in filename ) : if re . search ( 'assertEqual\\(\\s*[^,]*,[^,]*HTTP[^\\.]*\\.code\\s*\\)' , logical_line ) : ( yield ( 0 , msg ) )
n332 - enforce correct oredering for httpcode in assertequal .