hurl/integration/tests/error_assert_bytearray.py
2021-06-17 22:20:06 +02:00

12 lines
330 B
Python

from tests import app
from flask import make_response, request
from io import BytesIO
@app.route("/error-assert-bytearray")
def error_assert_bytearray():
result = BytesIO()
result.write(b'\xff')
data = result.getvalue()
resp = make_response(data)
resp.content_type = 'application/octet-stream'
return resp