Permalink
Browse files

Merge "Fix issue in test_forbidden_action_exposure."

  • Loading branch information...
2 parents f112873 + 24f21f5 commit bca6818d6458a6794e5f8550be0ceed3626cd7ca @xaxadmin xaxadmin committed with openstack-gerrit Jan 14, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/test_exception.py
View
5 tests/test_exception.py
@@ -114,10 +114,11 @@ def test_forbidden_action_exposure(self):
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)

0 comments on commit bca6818

Please sign in to comment.