예제 #1
0
  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())
예제 #2
0
  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()