Python Programming - Testing - Discussion
Discussion Forum : Testing - General Questions (Q.No. 72)
72.
What does the
unittest.mock.MagicMock.side_effect
attribute validate in Python testing?
Answer: Option
Explanation:
The
side_effect
attribute in Python's unittest.mock.MagicMock
is used to specify the exception to be raised by a method.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers