Refactor: change 403 status codes in test names

Change I952cac73a9713bde4ad757371ca8b4ded93f207e refactored the keystone test
cases to use the six.moves.http_client for HTTP status codes instead of
integers. This change refactors the method names to follow the same pattern.

Change-Id: I90b17a7196075c164fe8bbd0f43af13a118e4c7e
This commit is contained in:
Lance Bragstad 2015-10-09 15:16:29 +00:00
parent c1ac777eaf
commit 9b81c3e1b2
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class ExceptionTestCase(unit.BaseTestCase):
self.assertValidJsonRendering(e)
self.assertIn(target, six.text_type(e))
def test_403_title(self):
def test_forbidden_title(self):
e = exception.Forbidden()
resp = wsgi.render_exception(e)
j = jsonutils.loads(resp.body)

View File

@ -3234,7 +3234,7 @@ class ServiceProviderTests(FederationTests):
"""Update immutable attributes in service provider.
In this particular case the test will try to change ``id`` attribute.
The server should return an HTTP 403 error code.
The server should return an HTTP 403 Forbidden error code.
"""
new_sp_ref = {'id': uuid.uuid4().hex}