def test_order_task_with_task_not_existent_in_list(self):
        testlist8 = TodoList("market")
        testlist9 = TodoList("gym")
        task1 = testlist8.create_task("banana", " test banana", True, 1)
        task2 = testlist8.create_task("apple", "test apple", False, 2)
        task3 = testlist8.create_task("rice", "test rice", False, 3)
        task4 = testlist9.create_task("run", "run 50 minutes", True, 1)

        with self.assertRaises(TodoListError):
            testlist8.order_task(task4, 0)
    def test_order_task(self):
        testlist7 = TodoList("market")
        task1 = testlist7.create_task("banana", " test banana", True, 1)
        task2 = testlist7.create_task("apple", "test apple", False, 2)
        task3 = testlist7.create_task("rice", "test rice", False, 3)

        response = testlist7.order_task(task3, 0)
        self.assertEqual(response[0], task3)