Santoso Wijaya <santoso.wij...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11589>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to