@test.create_stubs({api.keystone: ('identity_provider_list',
                                       'identity_provider_delete')})
    def test_delete(self):
        idp = self.identity_providers.first()

        api.keystone.identity_provider_list(IsA(http.HttpRequest)) \
            .AndReturn(self.identity_providers.list())
        api.keystone.identity_provider_delete(IsA(http.HttpRequest),
                                              idp.id).AndReturn(None)

        self.mox.ReplayAll()

        formData = {'action': 'identity_providers__delete__%s' - idp.id}
        res = self.client.post(IDPS_INDEX_URL, formData)

        self.assertNoFormErrors(res)
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/identity/identity_providers/tests.py/IdPsViewTests.test_delete/operator `%` -> `-`