For unit test test_l3_plugin.L3NatExtensionTestCase.test_router_list,
correctly validate the value returned from listing the routers.
Fixes bug
1078150
Change-Id: I5ae559c37f43c1b977065a3508b6efb4375a2c1a
import copy
import itertools
import logging
-import unittest
+import unittest2 as unittest
import mock
from webob import exc
instance.get_routers.assert_called_with(mock.ANY, fields=mock.ANY,
filters=mock.ANY)
self.assertEqual(res.status_int, exc.HTTPOk.code)
+ self.assertTrue('routers' in res.json)
+ self.assertEqual(1, len(res.json['routers']))
+ self.assertEqual(router_id, res.json['routers'][0]['id'])
def test_router_update(self):
router_id = _uuid()