def finish_a_task(self): task_id = raw_input("Enter Task Id: ") valid = Validation.validate_id_type(task_id) if valid: print(valid) else: if (Task.mark_as_finished(task_id)): print("successfully finished Task") self.show_tasks() else: print("Task Not Updated or doest exist")
def test_finishing_task(self): task = Task(self.task_id, self.title, self.status) new_task = task.create_task() finish_task = Task.mark_as_finished(self.task_id) self.assertEquals(finish_task, True)