hurl/integration/tests/basic_authentication.py

11 lines
223 B
Python
Raw Normal View History

2020-10-21 14:48:22 +03:00
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'