Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 47)
47.
In Python testing, what is the purpose of the unittest.mock.Mock.assert_not_called method?
Asserts that a method was called at least once
Asserts that a method was called exactly once
Asserts that a method was not called
Asserts that a method was called with specific arguments
Answer: Option
Explanation:
The assert_not_called method in Python unittest.mock.Mock asserts that a method was not called.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.