

def _create_router(self, router=None, **kwargs):
    if (not router):
        router = mock.MagicMock()
    self.agent_conf = mock.Mock()
    self.driver = mock.Mock()
    self.router_id = _uuid()
    return legacy_router.LegacyRouter(self.router_id, router, self.agent_conf, self.driver, **kwargs)

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/agent/l3/test_legacy_router.py BasicRouterTestCaseFramework._create_router/original