nit: Fix NOTE error of fatal=False

Partial implement blueprint policy-defaults-refresh

Change-Id: I2ab6f42150afb9351bd4548b270c6a3b19909a32
This commit is contained in:
zhangbailin
2020-03-07 10:15:22 +08:00
parent eaf44304da
commit 1ad2f558c5
+4 -4
View File
@@ -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 = []