While writing some tests for my class, I encountered interesting simple problem. I would like to assertDictEqual two dictionaries containing some list. But this lists may not be
maybe you can check for the two elements separately:
obj_dict = obj.exportToDict() self.assertEqual(resulting_dictionary['state'], obj_dict['state']) self.assertCountEqual(resulting_dictionary['neighbours'], obj_dict['neighbours'])