Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 29)
29.
What does the Python unittest.mock.MagicMock class provide?
A magical decorator for test methods
A powerful assertion method
A class for creating mock objects with magical behavior
A mechanism for skipping tests magically
Answer: Option
Explanation:
The unittest.mock.MagicMock 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.