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
How about using all:
all
assert all( (k,v) in resulting_dictionary.iteritems() for (k,v) in obj.exportToDict().iteritems() )
I use something like this with py.test, but I think it should work for you.
A commenter pointed out that the order will screw me here---fair enough...I'd just use sets, then.