From df842706c32c2ee2bb982a0f8d90923e5fa77b91 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Sat, 3 Mar 2012 18:01:23 +0000 Subject: Fix test_attach_volume_raise_exception The arguments for attach_volume have changed, but the test failure was being masked by an overly broad check for the Exception type. Change-Id: I0a54efaee8520d734357e867e2fec0fc9be2cec6 --- nova/tests/test_xenapi.py | 4 ++-- 1 file 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') -- cgit