Python Programming - Testing - Discussion
Discussion Forum : Testing - General Questions (Q.No. 10)
10.
In Python's
unittest
module, what does the assertRaises
context manager do?
Answer: Option
Explanation:
The
assertRaises
context manager in the unittest
module checks if a specified exception is raised during the execution of a block of code.
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