Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 68)
68.
What is the purpose of the unittest.mock.MagicMock.reset_mock method?
Resets the call count of a method
Resets the return value of a method
Resets the side effect of a method
Resets all attributes of a mock object
Answer: Option
Explanation:
The reset_mock method in Python's unittest.mock.MagicMock resets all attributes of a mock object.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.