'Get a user for the test.
Subclasses can override this to provide their own way to provide a user
for the test. By default, driver.create_user is used. For drivers that
don\'t support create_user, this may go directly to the backend, or
maybe it gets a user from a set of pre-created users.'

def create_user(self, domain_id=None, **kwargs):

    user_id = uuid.uuid4().hex
    user = {'id': user_id, 'name': uuid.uuid4().hex, 'enabled': True}
    if self.driver.is_domain_aware():
        user['domain_id'] = (domain_id or uuid.uuid4().hex)
    user.update(kwargs)
    return self.driver.create_user(user_id, user)
