mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-24 04:31:37 +03:00
6eaaf88d0d
Change to cookie storage are made explicit with directives (experimental feature) @cookie_storage_set @cookie_storage_clear
17 lines
428 B
Python
17 lines
428 B
Python
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 ''
|
|
|
|
|
|
|