Why does the iteration order of a Python set (with the same contents) vary from run to run, and what are my options for making it consistent from run to run?
I under
You can set the expected result to be also a set. And checks if those two sets are equal using ==.