Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 58)
58.
What is the purpose of the unittest.mock.MagicMock.return_value attribute?
Specifies the return value of a method
Specifies the call count of a method
Specifies the exception to be raised by a method
Specifies the side effect of a method
Answer: Option
Explanation:
The return_value attribute in Python unittest.mock.MagicMock is used to specify the return value of a method.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.