Repository: cloudstack Updated Branches: refs/heads/4.4-forward aaa2f5932 -> afd9d4e75
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/afd9d4e7 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/afd9d4e7 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/afd9d4e7 Branch: refs/heads/4.4-forward Commit: afd9d4e7567007604e15761a33ce9314149f7e21 Parents: aaa2f59 Author: santhosh <[email protected]> Authored: Mon May 12 20:57:52 2014 +1000 Committer: Daan Hoogland <[email protected]> Committed: Mon May 12 15:06:38 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/afd9d4e7/test/integration/smoke/test_pvlan.py ---------------------------------------------------------------------- diff --git a/test/integration/smoke/test_pvlan.py b/test/integration/smoke/test_pvlan.py index a1c146b..9178e62 100644 --- a/test/integration/smoke/test_pvlan.py +++ b/test/integration/smoke/test_pvlan.py @@ -81,5 +81,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)
