Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 53)
53.
What does the unittest.TestCase.addCleanup method allow you to do?
Adds a cleanup function to be run after the test method
Adds a setup function to be run before the test method
Adds a sub-test to the test case
Adds a condition to skip the test
Answer: Option
Explanation:
The unittest.TestCase.addCleanup method is used to add a cleanup function to be run after the test method in Python unittest.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.