'Get a group for the test.
Similar to :meth:`~.create_user`, subclasses can override this to
provide their own way to provide a group for the test.'

def create_group(self, domain_id=None):

    group_id = uuid.uuid4().hex
    group = {'id': group_id, 'name': uuid.uuid4().hex}
    if self.driver.is_domain_aware():
        group['domain_id'] = (domain_id or uuid.uuid4().hex)
    return self.driver.create_group(group_id, group)
