

def make_many(amount, task_cls=DummyTask, offset=0):
    name_pool = (string.ascii_lowercase + string.ascii_uppercase)
    tasks = []
    while (amount > 0):
        if (offset >= len(name_pool)):
            raise AssertionError(('Name pool size to small (%s < %s)' % (len(name_pool), (offset + 1))))
        tasks.append(task_cls(name=name_pool[offset]))
        offset += 1
        amount -= 1
    return tasks

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/utils.py make_many/original