def setUp(self):
     super(TestBasicRoutingOperationsAci, self).setUp()
     self.routing_helper = aci_svc_helper.RoutingServiceHelperAci(
         helper.HOST, self.conf, self.agent)
     self.routing_helper._internal_network_added = mock.Mock()
     self.routing_helper._external_gateway_added = mock.Mock()
     self.routing_helper._internal_network_removed = mock.Mock()
     self.routing_helper._external_gateway_removed = mock.Mock()
     self.routing_helper._enable_router_interface = mock.Mock()
     self.routing_helper._disable_router_interface = mock.Mock()
     self.driver = self._mock_driver_and_hosting_device(self.routing_helper)
 def setUp(self):
     super(TestNetworkRoutingOperationsAci, self).setUp()
     self.agent = mock.Mock()
     self.conf = cfg.ConfigOpts()
     self.conf.register_opts(bc.core_opts)
     self.conf.register_opts(cfg_agent.OPTS, "cfg_agent")
     self.l3pluginApi_cls_p = mock.patch(
         'networking_cisco.plugins.cisco.cfg_agent.service_helpers.'
         'routing_svc_helper.CiscoRoutingPluginApi')
     l3plugin_api_cls = self.l3pluginApi_cls_p.start()
     self.plugin_api = mock.Mock()
     l3plugin_api_cls.return_value = self.plugin_api
     self.plugin_api.get_routers = mock.MagicMock()
     self.looping_call_p = mock.patch(
         'oslo_service.loopingcall.FixedIntervalLoopingCall')
     self.looping_call_p.start()
     mock.patch('neutron.common.rpc.create_connection').start()
     self.routing_helper = aci_svc_helper.RoutingServiceHelperAci(
         helper.HOST, self.conf, self.agent)
     self.routing_helper._external_gateway_added = mock.Mock()
     self.routing_helper._external_gateway_removed = mock.Mock()