Repeated headers request test.

Test the environ produced by a request object for repeated headers.
This commit is contained in:
Paul J. Davis 2010-02-10 11:01:14 -05:00
parent 588b48b2cd
commit 47776417d5

View File

@ -130,4 +130,11 @@ def test_011(req):
t.eq(e['CONTENT_LENGTH'], '11')
body = e['wsgi.input'].read()
t.eq(body, "hello world")
@t.http_request("017.http")
def test_017(req):
e = req.read()
t.eq(e['REQUEST_METHOD'], 'GET')
t.eq(e['PATH_INFO'], "/stuff/here")
t.eq(e["HTTP_IF_MATCH"], "bazinga!, large-sound")
t.eq(e["wsgi.input"].read(), "")