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?
Marks a test as skipped
Checks if an exception is raised during the execution of a block of code
Asserts that two values are equal
Defines the teardown logic for a test case
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:

Your comments will be displayed after verification.