How do I test dictionary-equality with Python's doctest-package?

I'm writing a doctest for a function that outputs a dictionary. The doctest looks like >>> my_function() {'this': 'is', 'a': 'dictionary'} When I run it, it fails with Expected: {'t...