unittests with different parameters

Jack Keegan whatsjacksemail at gmail.com
Wed Nov 24 13:17:32 EST 2010


Apologies if this is a bit off the wall but I've only just started getting
into unit testing (in Python) this morning. Would generators help you in any
way? You might be able to have a generator which would yield an attribute
set combination each time it is called.
I'm not sure if it would still stop at the first fail but I was reading this
morning that the Py.test framework utilises generators, and is apparently
compatible with the python unittest module.

I could be wrong though...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101124/1636ac64/attachment-0001.html>


More information about the Python-list mailing list