mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-19 00:22:10 +03:00
62243800e6
These tests should be covered in the .hurl integ tests.
13 lines
323 B
Python
13 lines
323 B
Python
from app import app
|
|
from flask import request
|
|
|
|
|
|
@app.route("/hello")
|
|
def hello():
|
|
assert len(request.headers) == 3
|
|
assert request.headers["Host"] == "localhost:8000"
|
|
assert request.headers["Accept"] == "*/*"
|
|
assert "User-Agent" in request.headers
|
|
assert len(request.data) == 0
|
|
return "Hello World!"
|