From 47776417d5c5b80c6bc3bff6887ca735516b0c63 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Wed, 10 Feb 2010 11:01:14 -0500 Subject: [PATCH] Repeated headers request test. Test the environ produced by a request object for repeated headers. --- tests/002-test-request.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/002-test-request.py b/tests/002-test-request.py index ef6140f0..600ce674 100644 --- a/tests/002-test-request.py +++ b/tests/002-test-request.py @@ -130,4 +130,11 @@ def test_011(req): t.eq(e['CONTENT_LENGTH'], '11') body = e['wsgi.input'].read() t.eq(body, "hello world") - \ No newline at end of file + +@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(), "")