[issue11589] Additional tests for email module
Santoso Wijaya
report at bugs.python.org
Fri Mar 18 19:19:10 CET 2011
Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:
Do we need each sample--(input -> expected output)--to be its own unittest function?
Why not something like (pseudo-code):
expected = {
'input1': 'output1',
'input2': 'output2',
}
def test_encode(self): # collapse all
for input, output in expected.items():
self._encode(input, output) # test logic
----------
nosy: +santa4nt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11589>
_______________________________________
More information about the Python-bugs-list
mailing list