summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authordaisy-ycguo <daisy.ycguo@gmail.com>2012-06-14 10:32:21 +0800
committerdaisy-ycguo <daisy.ycguo@gmail.com>2012-06-14 10:32:21 +0800
commit9ce657702cbc4312669f364e68b0c1faefd0f0af (patch)
tree4304fbaa972d9dccf46bbab09bb503174d6011c0 /nova/tests
parentcd085d0ce74fc478c04f1f61c0e5c22d7aa6d208 (diff)
bug #996880 change HostNotFound in hosts to HTTPNotFound
Change-Id: Ib8b7f1f26c2370e2a82b491d8774797985c0ae98
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/compute/contrib/test_hosts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/api/openstack/compute/contrib/test_hosts.py b/nova/tests/api/openstack/compute/contrib/test_hosts.py
index ae5c39e75..2e4064c21 100644
--- a/nova/tests/api/openstack/compute/contrib/test_hosts.py
+++ b/nova/tests/api/openstack/compute/contrib/test_hosts.py
@@ -182,7 +182,7 @@ class HostTestCase(test.TestCase):
self.assertEqual(result["maintenance_mode"], "on_maintenance")
def test_bad_host(self):
- self.assertRaises(exception.HostNotFound, self.controller.update,
+ self.assertRaises(webob.exc.HTTPNotFound, self.controller.update,
self.req, "bogus_host_name", body={"status": "disable"})
def test_show_forbidden(self):