Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 42)
42.
What does the Python unittest.mock.Mock class provide?
A magical decorator for test methods
A class for creating mock objects with magical behavior
A powerful assertion method
A mechanism for skipping tests magically
Answer: Option
Explanation:
The unittest.mock.Mock class in Python provides a way to create mock objects with magical behavior during testing.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.