Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 23)
23.
In Python testing, what is the purpose of the unittest.mock.Mock class?
Marks a test as skipped
Simulates the behavior of real objects in a controlled way
Represents a placeholder for a real object
Decorates a test method with a patch
Answer: Option
Explanation:
The unittest.mock.Mock class in Python is used to simulate the behavior of real objects in a controlled way during testing.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.