hurl/integration/tests/assert_header.py

15 lines
384 B
Python
Raw Normal View History

2020-08-27 10:07:46 +03:00
from tests import app
from flask import make_response
@app.route("/assert-header")
def assert_header():
resp = make_response()
resp.headers['Header1'] = 'value1'
2021-03-22 16:41:10 +03:00
resp.headers['ETag'] = '"33a64df551425fcc55e4d42a148795d9f25f89d4"'
2020-08-27 10:07:46 +03:00
resp.set_cookie('cookie1', 'value1')
resp.set_cookie('cookie2', 'value2')
resp.set_cookie('cookie3', 'value3')
return resp