'List user and group grants, even with a comma in the user\'s ID.'

def test_user_id_comma_grants(self):

    user_id = u'Doe,    John'
    user = self.new_user_ref(id=user_id, domain_id=CONF.identity.default_domain_id)
    self.identity_api.driver.create_user(user_id, user)
    ref_list = self.identity_api.list_users()
    public_user_id = None
    for ref in ref_list:
        if (ref['name'] == user['name']):
            public_user_id = ref['id']
            break
    role_id = default_fixtures.MEMBER_ROLE_ID
    project_id = self.tenant_baz['id']
    self.assignment_api.create_grant(role_id, user_id=public_user_id, project_id=project_id)
    role_ref = self.assignment_api.get_grant(role_id, user_id=public_user_id, project_id=project_id)
    self.assertEqual(role_id, role_ref['id'])
