

@test.create_stubs({
    api.keystone: ('user_list',),
})
def test_index(self):
    domain = self._get_default_domain()
    domain_id = domain.id
    users = self._get_users(domain_id)
    api.keystone.user_list(IgnoreArg(), domain=domain).AndReturn(users)
    self.mox.ReplayAll()
    res = self.client.get(USERS_INDEX_URL)
    self.assertTemplateUsed(res, 'identity/users/index.html')
    self.assertItemsEqual(res.context['table'].data, users)
    if domain_id:
        for user in res.context['table'].data:
            self.assertItemsEqual(user.domain_id, domain_id)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/identity/users/tests.py UsersViewTests.test_index/VarMisuse@65/83 `domain_id`->`domain`