Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 19)
19.
What does the Python unittest.expectedFailure decorator indicate?
Expects a failure and marks the test as passed if it fails
Expects a failure and marks the test as failed if it passes
Skips the test unless a condition is True
Decorates the test method with a patch for mocking
Answer: Option
Explanation:
The unittest.expectedFailure decorator indicates that a test is expected to fail, and if it does fail, it is marked as passed.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.