Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 11)
11.
What is the purpose of the Python unittest.mock module?
To create fake test data
To simulate the behavior of real objects in a controlled way
To generate random test cases
To perform static code analysis
Answer: Option
Explanation:
The unittest.mock module 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.