From f03e8a6f72fae83670359845c8284428a91e1bb4 Mon Sep 17 00:00:00 2001 From: santhosh Date: Mon, 12 May 2014 20:57:52 +1000 Subject: [PATCH] CLOUDSTACK-6627 catch exception instead of checking response Signed-off-by: santhosh Signed-off-by: Daan Hoogland --- test/integration/smoke/test_pvlan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_pvlan.py b/test/integration/smoke/test_pvlan.py index b4353678e48..7d1aa5d10ae 100644 --- a/test/integration/smoke/test_pvlan.py +++ b/test/integration/smoke/test_pvlan.py @@ -77,5 +77,5 @@ class TestPVLAN(cloudstackTestCase): createNetworkCmd.startipv6="fc00:1234::10" createNetworkCmd.endipv6="fc00:1234::20" err = 0 - createNetworkResponse = self.apiClient.createNetwork(createNetworkCmd) - self.assertEqual(createNetworkResponse, FAILED, "Creating PVLAN with IPv6 should fail") + with self.assertRaises(Exception): + self.apiClient.createNetwork(createNetworkCmd)