def test_remove_task_to_not_exist_in_list(self):
        testlist2false = TodoList("market")
        testlist3false = TodoList("gym")
        response = testlist3false.create_task("apple", "test apple", False, 2)

        with self.assertRaises(TodoListError):
            testlist2false.remove_task(response)
    def test_remove_task_to_list(self):
        testlist2 = TodoList("market")
        created_task = testlist2.create_task("apple", "test apple", False, 2)

        response = testlist2.remove_task(created_task)
        self.assertEqual(response, True)