diff options
author | spisarski <s.pisarski@cablelabs.com> | 2017-07-17 09:09:12 -0600 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2017-07-17 09:09:12 -0600 |
commit | 18158509660d6604502a1b079b2fe2b83b59caf7 (patch) | |
tree | ee98b8fc98988ad5b959b2754cc7a7aa5b39bd0a /snaps/openstack/utils/tests | |
parent | de6536ff2ba4faa1a3d4ed27e93d692cae20e5d2 (diff) |
Created new class NeutronException.
Raising NeutronException in neutron_utils.py instead of Exception.
JIRA: SNAPS-128
Change-Id: I567db38a5dfcaae9bbfc6c74558521b0e28d9d46
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/utils/tests')
-rw-r--r-- | snaps/openstack/utils/tests/neutron_utils_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/snaps/openstack/utils/tests/neutron_utils_tests.py b/snaps/openstack/utils/tests/neutron_utils_tests.py index 3c4a24f..588d722 100644 --- a/snaps/openstack/utils/tests/neutron_utils_tests.py +++ b/snaps/openstack/utils/tests/neutron_utils_tests.py @@ -24,6 +24,7 @@ from snaps.openstack.tests import validation_utils from snaps.openstack.tests.os_source_file_test import OSComponentTestCase from snaps.openstack.utils import keystone_utils from snaps.openstack.utils import neutron_utils +from snaps.openstack.utils.neutron_utils import NeutronException __author__ = 'spisarski' @@ -390,7 +391,7 @@ class NeutronUtilsRouterTests(OSComponentTestCase): validate_subnet( self.neutron, subnet_setting.name, subnet_setting.cidr, True) - with self.assertRaises(Exception): + with self.assertRaises(NeutronException): self.interface_router = neutron_utils.add_interface_router( self.neutron, self.router, self.subnet) @@ -411,7 +412,7 @@ class NeutronUtilsRouterTests(OSComponentTestCase): validate_router(self.neutron, self.net_config.router_settings.name, True) - with self.assertRaises(Exception): + with self.assertRaises(NeutronException): self.interface_router = neutron_utils.add_interface_router( self.neutron, self.router, self.subnet) |