Python unittest how to have setUp and tearDown to run for each subtest

Viewed 176

I would like to run the setUp() and the tearDown() function for each subtest in Python unit test. It works fine if I will call them explicitly, but is there any elegant way to do? Thanks.

0 Answers
Related