From 1ad2f558c5212ad9b8299f5e785b172019c8b64b Mon Sep 17 00:00:00 2001 From: zhangbailin Date: Sat, 7 Mar 2020 10:15:22 +0800 Subject: [PATCH] nit: Fix NOTE error of fatal=False Partial implement blueprint policy-defaults-refresh Change-Id: I2ab6f42150afb9351bd4548b270c6a3b19909a32 --- nova/tests/unit/policies/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = []