summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJohn Tran <jtran@attinteractive.com>2011-05-12 12:04:39 -0700
committerJohn Tran <jtran@attinteractive.com>2011-05-12 12:04:39 -0700
commit0a3da155228228d3f0eeac1efdea1e29eef2f3a0 (patch)
treea9a3c2a18a01b82505c0a469148f6a97c9d9cfe8 /nova/tests
parent86952493efb67b64b23766af094aa22deb21307f (diff)
changed NotFound exception to ImageNotFound
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_cloud.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_cloud.py b/nova/tests/test_cloud.py
index 202dc36bc..ebfb5ee44 100644
--- a/nova/tests/test_cloud.py
+++ b/nova/tests/test_cloud.py
@@ -227,7 +227,7 @@ class CloudTestCase(test.TestCase):
'type': 'machine'}}]
def fake_show_none(meh, context, id):
- raise exception.NotFound
+ raise exception.ImageNotFound
self.stubs.Set(local.LocalImageService, 'detail', fake_detail)
# list all
@@ -245,7 +245,7 @@ class CloudTestCase(test.TestCase):
self.stubs.UnsetAll()
self.stubs.Set(local.LocalImageService, 'show', fake_show_none)
self.stubs.Set(local.LocalImageService, 'show_by_name', fake_show_none)
- self.assertRaises(exception.NotFound, describe_images,
+ self.assertRaises(exception.ImageNotFound, describe_images,
self.context, ['ami-fake'])
def test_describe_image_attribute(self):