def test_extension_hides_without_rules(self):
        router = self.routers.first()
        res = self._get_detail(router)

        self.assertTemplateUsed(res, '%s/routers/detail.html' % self.DASHBOARD)
        self.assertTemplateNotUsed(
            res,
            self.DASHBOARD % '%s/routers/extensions/routerrules/grid.html')
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/project/routers/tests.py/RouterRuleTests.test_extension_hides_without_rules/swapped operands of `%`