hurl/integration/tests/basic_authentication.py
2022-02-05 18:15:41 +01:00

9 lines
221 B
Python

from tests import app
from flask import request
@app.route("/basic-authentication")
def basic_authentication():
assert request.headers["Authorization"] == "Basic Ym9iOnNlY3JldA=="
return "You are authenticated"