hurl/integration/tests_ok/basic_authentication.py

9 lines
231 B
Python
Raw Normal View History

from app import app
2020-10-21 14:48:22 +03:00
from flask import request
@app.route("/basic-authentication")
def basic_authentication():
assert request.headers["Authorization"] == "Basic Ym9iQGVtYWlsLmNvbTpzZWNyZXQ="
return "You are authenticated"