Repository: cloudstack Updated Branches: refs/heads/master 7ae784ba3 -> f03e8a6f7
CLOUDSTACK-6627 catch exception instead of checking response Signed-off-by: santhosh <[email protected]> Signed-off-by: Daan Hoogland <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f03e8a6f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f03e8a6f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f03e8a6f Branch: refs/heads/master Commit: f03e8a6f72fae83670359845c8284428a91e1bb4 Parents: 7ae784b Author: santhosh <[email protected]> Authored: Mon May 12 20:57:52 2014 +1000 Committer: Daan Hoogland <[email protected]> Committed: Mon May 12 15:03:30 2014 +0200 ---------------------------------------------------------------------- test/integration/smoke/test_pvlan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f03e8a6f/test/integration/smoke/test_pvlan.py ---------------------------------------------------------------------- diff --git a/test/integration/smoke/test_pvlan.py b/test/integration/smoke/test_pvlan.py index b435367..7d1aa5d 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)
