CLOUDSTACK-6627 catch exception instead of checking response

Signed-off-by: santhosh <santhosh.edukulla@gmail.com>
Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
santhosh 2014-05-12 20:57:52 +10:00 committed by Daan Hoogland
parent 7ae784ba3c
commit f03e8a6f72

View File

@ -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)