fixed the validation in stopped vm test which expects an exception

This commit is contained in:
Srikanteswararao Talluri 2012-07-26 14:57:46 +05:30
parent 49b9da3dfc
commit e8f64d3cc5
1 changed files with 2 additions and 3 deletions

View File

@ -1884,8 +1884,7 @@ class TestUploadAttachVolume(cloudstackTestCase):
'Stopped',
"Check VM state is Running or not"
)
try:
with self.assertRaises(Exception):
virtual_machine.attach_volume(self.apiclient, volume)
except Exception as e:
self.fail("Failed to attach the volume: %s" % e)
self.debug("Failed to attach the volume as expected")
return