Skip to content

Commit

Permalink
Improved coverage on same-header keys
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 authored May 30, 2021
1 parent d1ee83f commit cd15242
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async def test_basic_wsgi():
"""
# Define WSGI app
def wsgi_application(environ, start_response):
assert environ["HTTP_TEST_HEADER"] == "test value"
assert environ["HTTP_TEST_HEADER"] == "test value 1,test value 2"
start_response("200 OK", [["X-Colour", "Blue"]])
yield b"first chunk "
yield b"second chunk"
Expand All @@ -29,7 +29,10 @@ def wsgi_application(environ, start_response):
"method": "GET",
"path": "/foo/",
"query_string": b"bar=baz",
"headers": [[b"test-header", b"test value"]],
"headers": [
[b"test-header", b"test value 1"],
[b"test-header", b"test value 2"],
],
},
)
await instance.send_input({"type": "http.request"})
Expand Down

0 comments on commit cd15242

Please sign in to comment.