hurl/integration/tests_ok/post_multilines.py

15 lines
298 B
Python
Raw Normal View History

2020-08-27 10:07:46 +03:00
from flask import request
from app import app
2020-08-27 10:07:46 +03:00
@app.route("/post-multilines", methods=["POST"])
2020-08-27 10:07:46 +03:00
def post_multilines():
s = request.data.decode("utf-8")
assert s == "name,age\nbob,10\nbill,22\n"
return ""
2020-08-27 10:07:46 +03:00
@app.route("/get-bob-age", methods=["GET"])
def get_bob_age():
return "10"