nit: Fix NOTE error of fatal=False
Partial implement blueprint policy-defaults-refresh Change-Id: I2ab6f42150afb9351bd4548b270c6a3b19909a32
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user