# coding=utf-8
from flask import request
from app import app
@app.route("/post-xml", methods=["POST"])
def post_xml():
s = request.data.decode("utf-8")
assert (
s
== """
caf\u00e9"""
)
return ""
@app.route("/post-xml-no-prolog", methods=["POST"])
def post_xml_no_prolog():
s = request.data.decode("utf-8")
assert s == """caf\u00e9"""
return ""
@app.route("/post-xml-large", methods=["POST"])
def post_xml_large():
s = request.data.decode("utf-8")
assert len(s) == 22156
return ""