def test_validation_error_with_message():
    request = webapp2.Request.blank('/', POST={'num': '3'})
    with pytest.raises(ValidationError) as exc:
        parser.parse(hello_validate, req=request)
        assert "Houston, we've had a problem." in exc.value
dataset/ETHPy150Open sloria/webargs/tests/test_webapp2parser.py/test_validation_error_with_message/original