

@test.create_stubs({
    api.keystone: ('identity_provider_list',),
})
def test_index(self):
    api.keystone.identity_provider_list(IgnoreArg()).AndReturn(self.identity_providers.list())
    self.mox.ReplayAll()
    res = self.client.get(IDPS_INDEX_URL)
    self.assertTemplateUsed(res, 'identity/identity_providers/index.html')
    self.assertItemsEqual(res.context['table'].data, self.identity_providers.list())

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/identity/identity_providers/tests.py IdPsViewTests.test_index/original