CLOUDSTACK-3841: Fixed test case issue. The exception raised earlier was valid behaviour, added missing assertRaiss statement

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 67c96d419d08f5a2702eee0aa64958e486f74703)
This commit is contained in:
Gaurav Aradhye 2013-07-29 01:43:58 -04:00 committed by Prasanna Santhanam
parent 1b398aa3fc
commit 3a3145507d

View File

@ -1111,7 +1111,8 @@ class TestDeleteSecurityGroup(cloudstackTestCase):
self.debug("Deploying VM in account: %s" % self.account.name)
# Deleting Security group should raise exception
security_group.delete(self.apiclient)
with self.assertRaises(Exception):
security_group.delete(self.apiclient)
#sleep to ensure that Security group is deleted properly
time.sleep(self.services["sleep"])