

def create_task(self, **kwargs):
    task = Task(**kwargs)
    self.db.add(task)
    self.db.commit()
    return task

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py EnvironmentManager.create_task/original