From f6da0e4edae7420c614e06f29fb088b90be338b5 Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Thu, 8 Nov 2012 12:43:22 +0800 Subject: [PATCH] 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 --- quantum/tests/unit/test_l3_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2