diff --git a/test/integration/component/test_security_groups.py b/test/integration/component/test_security_groups.py index 3c25e25a34f..5ec3ffb00d5 100644 --- a/test/integration/component/test_security_groups.py +++ b/test/integration/component/test_security_groups.py @@ -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"])