[Zope-dev] Re: Unit Test Failures

Philipp von Weitershausen philipp at weitershausen.de
Mon Dec 19 10:40:12 EST 2005


Jim Fulton wrote:
> This is really just a matter of knowing how to write the test.
> Generally, when you want to show a dict sample, the way to do it
> is with:
>
>  >>> from zope.testing/doctestunit import pprint
>  >>> pprint(thisdict)
>
> This formats the dictionary nicely and, most importantly,
> sorts the items before displaying it.

This is what I did in this test, btw.

Philipp


P.S.: My other reply got swallowed by Mailman, can someone accept the posting please?


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


More information about the Zope-Dev mailing list