Exemplo n.º 1
0
    def delete_a_task(self):
        task_id = raw_input("Enter Task Id: ")

        valid = Validation.validate_id_type(task_id)
        if valid:
            print(valid)
        else:
            if (Task.delete_task(task_id)):
                print("successfully deleted Task")
            else:
                print("Task Not Deleted or doest exist")
Exemplo n.º 2
0
 def test_deleting_task(self):
     task = Task(self.task_id, self.title, self.status)
     new_task = task.create_task()
     delete_task = Task.delete_task(self.task_id)
     self.assertEquals(delete_task, True)