Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 8)
8.
In the context of Python testing, what is the purpose of the mock library?
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 mock library 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.