hurl/integration/tests/expect.py
2022-02-05 18:15:41 +01:00

11 lines
237 B
Python

from tests import app
from flask import request
@app.route("/expect", methods=["POST"])
def expect():
assert request.headers["Expect"] == "100-continue"
s = request.data.decode("utf-8")
assert s == """data"""
return ""