This assertion would be more clear as ``assert set_in == set_out``