hurl/integration/tests/cookie_storage.py

17 lines
428 B
Python
Raw Normal View History

from flask import request, make_response
from tests import app
@app.route("/cookie-storage/assert-that-cookie1-is-valueA")
def cookiestorage_assert_that_cookie1_is_valuea():
assert request.cookies['cookie1'] == 'valueA'
return ''
@app.route("/cookie-storage/assert-that-cookie1-is-not-in-session")
def cookiestorage_assert_that_cookie1_is_not_in_session():
assert'cookie1' not in request.cookies
return ''