Add a hacking rule for consistent HTTP501 message

There is raise_feature_not_supported() for returning a HTTP501
response with consistent error message, and this patch adds a rule
for enforcing to use the method on v2.1 API.

Partially implements blueprint v2-on-v3-api

Change-Id: I06f254fd9c8d8b6aac4ed135c6c407f3a993431f
This commit is contained in:
Ken'ichi Ohmichi 2015-03-09 02:19:32 +00:00
parent 671a3d13c2
commit a4cd4b6cdd

View File

@ -50,6 +50,7 @@ Nova Specific Commandments
- [N338] Change assertEqual(A in B, True), assertEqual(True, A in B),
assertEqual(A in B, False) or assertEqual(False, A in B) to the more specific
assertIn/NotIn(A, B)
- [N339] Check common raise_feature_not_supported() is used for v2.1 HTTPNotImplemented response.
Creating Unit Tests
-------------------