def test_func(self): with asserts.assert_raises(SomeError, extras=MOCK_EXTRA): raise AttributeError(MSG_UNEXPECTED_EXCEPTION)
def test_func(self): with asserts.assert_raises(SomeError, extras=MOCK_EXTRA): pass