Oh sorry, you are correct, the order does not matter, since it is checking for in rather than equality.  Apologies, I misread line 268.  :)  It seems making sure that the servers have been added to the load balancer, but the port checking is more broad.  It seems to be checking that for each port specified in the load balancer part of the launch config, there is at least one server on the load balancer that is on that port.

If I'm reading this right (which I may not be):

1. If there were extra nodes that load balancer other than the server_ids_list, and they were added to the right port, and the server_ids_list servers were not on the right list, it seems like this test may still pass?  Because all the nodes that are on the load balancer get their ports added to the port_list, not just the ones that map to server_id.

2. If there are 2 load balancers, one where servers are supposed to be added to port 80 and the other 8080, if we flipped it around so that the servers get added to 8080 on the first load balancer and 80 on the second load balancer, it seems like this test would still pass?