From 2ae64a2ee5d215a76a1eed958a592e8cda906df0 Mon Sep 17 00:00:00 2001 From: jfwood Date: Mon, 30 Dec 2013 15:20:17 -0600 Subject: [PATCH] Fix RBAC unit test failure due to uninitialized mock. Initialized get_param() call to return None for all parameters. Change-Id: Ic672899a34575407f2f30e0876a71693fdc15864 --- barbican/tests/api/test_resources_policy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/barbican/tests/api/test_resources_policy.py b/barbican/tests/api/test_resources_policy.py index 59cf0f7d9..6b1742d58 100644 --- a/barbican/tests/api/test_resources_policy.py +++ b/barbican/tests/api/test_resources_policy.py @@ -51,6 +51,7 @@ class BaseTestCase(unittest.TestCase): def _generate_req(self, roles=None, accept=None): """Generate a fake HTTP request with security context added to it.""" req = mock.MagicMock() + req.get_param.return_value = None kwargs = { 'user': None,