Skip to content

Commit 258d68b

Browse files
committed
Merge branch 'stable'
2 parents e4e4bf6 + a31e6b7 commit 258d68b

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

tests/test_reqctx.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -275,31 +275,3 @@ def get_dynamic_cookie():
275275
# cookies are being used for the urls that end with "dynamic cookie"
276276
assert test_client.get("/get").data == b"42"
277277
assert test_client.get("/get_dynamic_cookie").data == b"616"
278-
279-
280-
def test_bad_environ_raises_bad_request():
281-
app = flask.Flask(__name__)
282-
283-
from flask.testing import EnvironBuilder
284-
285-
builder = EnvironBuilder(app)
286-
environ = builder.get_environ()
287-
288-
# use a non-printable character in the Host - this is key to this test
289-
environ["HTTP_HOST"] = "\x8a"
290-
291-
with app.request_context(environ) as ctx:
292-
response = app.full_dispatch_request(ctx)
293-
294-
assert response.status_code == 400
295-
296-
297-
def test_normal_environ_completes():
298-
app = flask.Flask(__name__)
299-
300-
@app.route("/")
301-
def index():
302-
return "Hello World!"
303-
304-
response = app.test_client().get("/", headers={"host": "xn--on-0ia.com"})
305-
assert response.status_code == 200

0 commit comments

Comments
 (0)