diff --git a/nova/tests/unit/policies/base.py b/nova/tests/unit/policies/base.py index 19679fe8eb..f76c630d0d 100644 --- a/nova/tests/unit/policies/base.py +++ b/nova/tests/unit/policies/base.py @@ -115,10 +115,10 @@ class BasePolicyTest(test.TestCase): unauthorized_contexts, rule_name, func, req, *arg, **kwarg): - # NOTE(brinzhang): When fatal=False is passed as a parameter in - # context.can(), we cannot get the desired assurance_raises(). - # At this time, we can assert the func's response to ensure - # that changes is right. + # NOTE(brinzhang): When fatal=False is passed as a parameter + # in context.can(), we cannot get the desired ensure_raises(). + # At this time, we can call ensure_return() to assert the func's + # response to ensure that changes are right. fatal = kwarg.pop('fatal', True) authorized_response = [] unauthorize_response = []