Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @classmethod
- def tearDownClass(cls):
- has_exception = False
- for vpnservice in cls.vpnservices:
- try:
- cls.client.delete_vpn_service(vpnservice['id'])
- except Exception as exc:
- LOG.exception(exc)
- has_exception = True
- for router in cls.routers:
- try:
- (cls.client.remove_router_interface_with_subnet_id(
- router['id'], cls.subnets[0]['id']))
- cls.client.delete_router(router['id'])
- except Exception as exc:
- LOG.exception(exc)
- has_exception = True
- .........................
- .........................
- .........................
- for network in cls.networks:
- try:
- cls.client.delete_network(network['id'])
- except Exception as exc:
- LOG.exception(exc)
- has_exception = True
- super(BaseNetworkTest, cls).tearDownClass()
- if has_exception:
- raise TearDownException()
Advertisement
Add Comment
Please, Sign In to add comment