diff options
| author | matt.dietz@rackspace.com <> | 2011-03-16 19:40:16 +0000 |
|---|---|---|
| committer | matt.dietz@rackspace.com <> | 2011-03-16 19:40:16 +0000 |
| commit | 227957e31d75b24bb8afa078c8d3f2bc447a8215 (patch) | |
| tree | d434cada13b4fb62b9a1ea70c5cc01717de92d05 /nova | |
| parent | 85bae497aa803914d329f2872d343a9982dc370e (diff) | |
| download | nova-227957e31d75b24bb8afa078c8d3f2bc447a8215.tar.gz nova-227957e31d75b24bb8afa078c8d3f2bc447a8215.tar.xz nova-227957e31d75b24bb8afa078c8d3f2bc447a8215.zip | |
Unit test update
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/api/openstack/test_flavors.py | 3 |
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) |
