[issue7897] Support parametrized tests in unittest
Michael Foord
report at bugs.python.org
Thu Jul 21 17:26:51 CEST 2011
Michael Foord <michael at voidspace.org.uk> added the comment:
David, I don't understand - it looks like Nick's suggestion would allow you to create a name per case, that's the point of it!
You could even do this:
def _name_from_case(name, cases):
for idx, case in enumerate(cases, start=1):
test_name = case[0]
params = case[1:]
yield (test_name, params)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7897>
_______________________________________
More information about the Python-bugs-list
mailing list