[issue7897] Support parametrized tests in unittest

R. David Murray report at bugs.python.org
Thu Jul 21 04:34:25 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Personally I would be happy if I could pass in a dictionary that maps names to argument tuples, or an iterator yielding (name, (argtuple)) pairs, and just have the failure report the name.  That is, make me responsible for generating meaningful names, don't autogenerate them.  Then someone could provide a name autogenerate helper on top of that base interface. 

Checking for name clashes would be nice, but it would be nice to have that for non-parameterized test cases, too (I've been bitten by that a number of time ;)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7897>
_______________________________________


More information about the Python-bugs-list mailing list