From 3a3145507d8b68b13d4320847511aaacc25475e5 Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Mon, 29 Jul 2013 01:43:58 -0400 Subject: [PATCH] CLOUDSTACK-3841: Fixed test case issue. The exception raised earlier was valid behaviour, added missing assertRaiss statement Signed-off-by: Prasanna Santhanam (cherry picked from commit 67c96d419d08f5a2702eee0aa64958e486f74703) --- test/integration/component/test_security_groups.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"])