working on test procedure. Sometimes (because of db) I have different order of dictionaries in the list:
response = [{'code':'one'}, {'code':'two'}]
and sometimes I have:
response = [{'code':'two'}, {'code':'one'}]
I would like to be sure that the list is the same in all variants of replays:
self.AssertEqual (response, [{'code':'one'}, {'code':'two'}])
I tried AssertListEqual - doesn't help. Returns error if order is different.