Merge "Address minor comments to 404 error detection"

This commit is contained in:
Zuul 2018-07-13 02:45:49 +00:00 committed by Gerrit Code Review
commit 0d5b5f6467
1 changed files with 3 additions and 3 deletions

View File

@ -485,9 +485,9 @@ def create_user(api, domain_id, **kwargs):
def _assert_expected_status(f):
"""Add "expected status as an argument to the test_client methods.
"""Add `expected_status_code` as an argument to the test_client methods.
`expected_status` must be passed as a kwarg.
`expected_status_code` must be passed as a kwarg.
"""
@functools.wraps(f)
def inner(*args, **kwargs):
@ -851,7 +851,7 @@ class TestCase(BaseTestCase):
app.testing = True
app.test_client_class = KeystoneFlaskTestClient
# NOTE(morgan): any unexpected 404s [not handled by the routed apis
# NOTE(morgan): any unexpected 404s, not handled by the routed apis,
# is a hard error and should not pass testing.
def page_not_found_teapot(e):
content = (