def testcreate_and_delete(self): tasklist = TaskList(self.tl, "rays-test=00") tasklist.insert() self.failIf(not tasklist.exists()) tasklist.delete() self.failIf(tasklist.exists())
def test_add_tasks_to_tasklist(self): tasklist = TaskList(self.tl, "task-inserter") tasklist.insert() self.failIf(not tasklist.exists()) tl_id = tasklist.get_id() task = Task(self.task, tl_id) task.insert()