hurl/integration/tests/form_params.py
2020-08-27 16:44:57 +02:00

13 lines
303 B
Python

from tests import app
from flask import request
@app.route("/form-params", methods=['POST'])
def form_params():
assert request.form['param1'] == 'value1'
assert request.form['param2'] == ''
assert request.form['param3'] == 'a=b'
assert request.form['param4'] == 'a%3db'
return ''