[TIP] Test Parameterization with unittest
robertc at robertcollins.net
Tue May 12 15:07:12 PDT 2009
On Tue, 2009-05-12 at 11:00 -0400, Doug Philips wrote:
> On or about Tuesday, May 12, 2009, at 07:12AM, Michael Foord indited:
> >I'm also not wild about specifying a dictionary of parameters which
> >'magically' become instance attributes. It would make me antsy
> >tests that use attributes which don't exist until they are stuck
> >the instance.
> Yes, when you put it that way, I agree. Magical attributes <shudder>.
No worse than calling a helper which sets attributes for you. Like, I
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.idyll.org/pipermail/testing-in-python/attachments/20090513/e4a9bf82/attachment.pgp
More information about the testing-in-python