summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_policy.py
diff options
context:
space:
mode:
authorAndrew Bogott <abogott@wikimedia.org>2012-07-03 00:16:36 -0500
committerAndrew Bogott <abogott@wikimedia.org>2012-07-03 00:48:52 -0500
commit85f6662f25e9d2696ec6086a1423c1b93a58cb0c (patch)
tree6ffafa3ec536a70aa76267dead8891f5406fc4dc /tests/unit/test_policy.py
parent506486550480fb222a92447e1e8baca855d126aa (diff)
downloadoslo-85f6662f25e9d2696ec6086a1423c1b93a58cb0c.tar.gz
oslo-85f6662f25e9d2696ec6086a1423c1b93a58cb0c.tar.xz
oslo-85f6662f25e9d2696ec6086a1423c1b93a58cb0c.zip
Switch common files to using jsonutils.
For blueprint use-common-jsonutils Pretty much just a search and replace. Change-Id: I66f63e7b0ff82a37d8a6b9acef94f4e10a45bf90
Diffstat (limited to 'tests/unit/test_policy.py')
-rw-r--r--tests/unit/test_policy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_policy.py b/tests/unit/test_policy.py
index 9471855..449c8a9 100644
--- a/tests/unit/test_policy.py
+++ b/tests/unit/test_policy.py
@@ -17,7 +17,6 @@
"""Test of Policy Engine For Nova"""
-import json
import os.path
import StringIO
import unittest
@@ -26,6 +25,7 @@ import urllib
import mock
import urllib2
+from openstack.common import jsonutils
from openstack.common import policy
@@ -374,7 +374,7 @@ class HttpBrainTestCase(unittest.TestCase):
result = {}
for item in self.post_data.split('&'):
key, _sep, value = item.partition('=')
- result[key] = json.loads(urllib.unquote_plus(value))
+ result[key] = jsonutils.loads(urllib.unquote_plus(value))
return result