From: He Jie Xu Date: Thu, 8 Nov 2012 04:43:22 +0000 (+0800) Subject: Fix unitest test_router_list with wrong fake return value X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f6da0e4edae7420c614e06f29fb088b90be338b5;p=openstack-build%2Fneutron-build.git Fix unitest test_router_list with wrong fake return value Fixes bug 1077879 The object of return list shouldn't wrap in 'router' Change-Id: I26862088f55a8d674bf22d66c7aeda1ca8fb1f98 --- diff --git a/quantum/tests/unit/test_l3_plugin.py b/quantum/tests/unit/test_l3_plugin.py index 99710b40b..951f73f97 100644 --- a/quantum/tests/unit/test_l3_plugin.py +++ b/quantum/tests/unit/test_l3_plugin.py @@ -132,8 +132,8 @@ class L3NatExtensionTestCase(unittest.TestCase): def test_router_list(self): router_id = _uuid() - return_value = [{'router': {'name': 'router1', 'admin_state_up': True, - 'tenant_id': _uuid(), 'id': router_id}}] + return_value = [{'name': 'router1', 'admin_state_up': True, + 'tenant_id': _uuid(), 'id': router_id}] instance = self.plugin.return_value instance.get_routers.return_value = return_value