summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/tests/test_xenapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index 6f8ad189b..e5eafa685 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -202,10 +202,10 @@ class XenAPIVolumeTestCase(test.TestCase):
volume = self._create_volume()
instance = db.instance_create(self.context, self.instance_values)
xenapi_fake.create_vm(instance.name, 'Running')
- self.assertRaises(Exception,
+ self.assertRaises(exception.VolumeDriverNotFound,
conn.attach_volume,
+ {'driver_volume_type': 'nonexist'},
instance.name,
- volume['id'],
'/dev/sdc')