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
You might try PyHamcrest (Example corrected)
assert_that(obj.exportToDict(), has_entries( { 'state': 2347, 'neighbours': contains_inanyorder(1,2,3) }))
(The first value 2347 actually gets wrapped in an implicit equal_to matcher.)
equal_to