hurl/integration/tests_failed/assert_match_utf8.py

13 lines
272 B
Python
Raw Normal View History

from app import app
2020-08-27 10:07:46 +03:00
from flask import make_response
from io import BytesIO
@app.route("/error-assert/match-utf8")
2020-08-27 10:07:46 +03:00
def error_assert_match_utf8():
result = BytesIO()
result.write(b"\xff")
2020-08-27 10:07:46 +03:00
data = result.getvalue()
resp = make_response(data)
return resp