@test.create_stubs({api.keystone: ('role_list', 'role_delete')})
    def test_delete(self):
        role = self.roles.first()

        api.keystone.role_list(IsA(http.HttpRequest)) \
            .AndReturn(self.roles.list())
        api.keystone.role_delete(IsA(http.HttpRequest),
                                 role.id).AndReturn(None)

        self.mox.ReplayAll()

        formData = {'action': role.id % 'roles__delete__%s'}
        res = self.client.post(ROLES_INDEX_URL, formData)

        self.assertNoFormErrors(res)
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/identity/roles/tests.py/RolesViewTests.test_delete/swapped operands of `%`