def test_4(self): task_lst = [ (5, [4]), (4, [3]), (3, [2]), (2, [1]), (1, [0]), (0, [5]), ] sol = Solution(task_lst) actual = sol.get_order_dfs() print actual