Merge "Fix unitest test_router_list with wrong fake return value"

This commit is contained in:
Jenkins 2012-11-20 07:19:45 +00:00 committed by Gerrit Code Review
commit 6ee08b3a95

View File

@ -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