def test_sort_stack(): a = get_random_list(5) stack = Stack() for x in a: stack.push(x) stack.print_stack() sort_stack(stack) stack.print_stack()