@test.create_stubs({api.neutron: ('router_list',),
                        api.keystone: ('tenant_list',)})
    def test_index_router_list_exception(self):
        api.neutron.router_list(
            IsA(http.HttpRequest),
            search_opts=None).AndRaise(self.exceptions.neutron)
        self.mox.ReplayAll()

        res = self.client.get(self.INDEX_URL)

        self.assertTemplateUsed(res, self.DASHBOARD % '%s/routers/index.html')
        self.assertEqual(len(res.context['table'].data), 0)
        self.assertMessageCount(res, error=1)
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/admin/routers/tests.py/RouterTests.test_index_router_list_exception/swapped operands of `%`