Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 22)
22.
What is the purpose of the unittest.mock.call_count attribute?
Counts the number of calls to a function or method
Checks if a function or method has been called
Represents the call arguments of a function or method
Mocks the behavior of a function or method
Answer: Option
Explanation:
The unittest.mock.call_count attribute is used to count the number of calls to a function or method in Python unittest.mock.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.