File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments