summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_exception.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_exception.py b/tests/test_exception.py
index 0d30c5ba..a13e3982 100644
--- a/tests/test_exception.py
+++ b/tests/test_exception.py
@@ -114,10 +114,11 @@ class SecurityErrorTestCase(ExceptionTestCase):
CONF.debug = False
risky_info = uuid.uuid4().hex
-
- e = exception.ForbiddenAction(message=risky_info)
+ action = uuid.uuid4().hex
+ e = exception.ForbiddenAction(message=risky_info, action=action)
self.assertValidJsonRendering(e)
self.assertNotIn(risky_info, str(e))
+ self.assertIn(action, str(e))
e = exception.ForbiddenAction(action=risky_info)
self.assertValidJsonRendering(e)