I want to apply the same unittest to different inputs and outputs. For instance:
def test_something(self):
calculated = some_funtion(input_data[idx])
self.assertEquals(calculated, expected[idx])
for all idx
(say, 1,000).
There's this question that asks something similar, but the question does not have any satisfactory answers.
I have to use Python unittest
.