def test_assertRaisesWithCallableDoesNotRaise(self):
        """HyperlinkTestCase.assertRaises raises an AssertionError when given
        a callable that, when called, does not raise any exception.

        """

        def doesNotRaise(*args, **kwargs):
            return True

        try:
            self.hyperlink_test.assertRaises(_ExpectedException,
                                             doesNotRaise)
        except AssertionError:
            pass
HyperlinkTestCase.assertRaises raises an AssertionError when given
        a callable that, when called, does not raise any exception.

        
stackoverflow/venv/lib/python3.6/site-packages/hyperlink/test/test_common.py