hurl/integration/tests/follow_redirect.py
2020-09-14 15:32:25 +02:00

15 lines
383 B
Python

from tests import app
from flask import redirect
@app.route('/follow-redirect')
def follow_redirect():
return redirect('http://localhost:8000/following-redirect')
@app.route('/following-redirect')
def following_redirect():
return redirect('http://localhost:8000/followed-redirect')
@app.route('/followed-redirect')
def followed_redirect():
return 'Followed redirect!'