79479175

Date: 2025-03-02 13:43:32
Score: 1
Natty:
Report link

Here's how I did it:

with self.assertRaises(AssertionError) as context:
    throw_an_assertion_here()
self.assertTrue(isinstance(context.exception, AssertionError))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: James Strieter