'Even if the user has a , in their ID, groups can be listed.'

def test_user_id_comma(self):

    user_id = u'Doe,    John'
    user = self.new_user_ref(id=user_id, domain_id=CONF.identity.default_domain_id)
    user = 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
    group = unit.new_group_ref(domain_id=CONF.identity.default_domain_id)
    group_id = group['id']
    group = self.identity_api.driver.create_group(group_id, group)
    ref_list = self.identity_api.list_groups()
    public_group_id = None
    for ref in ref_list:
        if (ref['name'] == group['name']):
            public_group_id = ref['id']
            break
    self.identity_api.add_user_to_group(public_user_id, public_group_id)
    ref_list = self.identity_api.list_groups_for_user(public_user_id)
    group['id'] = public_group_id
    self.assertThat(ref_list, matchers.Equals([group]))
