a = {i: (sorted(j) if isinstance(j, list) else j) for i, j in
    resulting_dictionary.items()}
b = {i: (sorted(j) if isinstance(j, list) else j) for i, j in obj.
    exportToDict().items()}
self.assertDictEqual(a, b)
Python unittest - asserting dictionary with lists