summaryrefslogtreecommitdiffstats
path: root/nova/tests/api/openstack/test_flavors.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/api/openstack/test_flavors.py')
-rw-r--r--nova/tests/api/openstack/test_flavors.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/tests/api/openstack/test_flavors.py b/nova/tests/api/openstack/test_flavors.py
index 8280a505f..30326dc50 100644
--- a/nova/tests/api/openstack/test_flavors.py
+++ b/nova/tests/api/openstack/test_flavors.py
@@ -15,6 +15,7 @@
# License for the specific language governing permissions and limitations
# under the License.
+import json
import stubout
import webob
@@ -50,3 +51,5 @@ class FlavorsTest(test.TestCase):
req = webob.Request.blank('/v1.0/flavors/1')
res = req.get_response(fakes.wsgi_app())
self.assertEqual(res.status_int, 200)
+ body = json.loads(res.body)
+ self.assertEqual(body['flavor']['id'], 1)