from flask import request, make_response from tests import app @app.route("/cookie_file") def cookie_file(): assert request.cookies['cookie1'] == 'valueA' return ''