summaryrefslogtreecommitdiff
path: root/tests/test_httpheaders.py
diff options
context:
space:
mode:
authorcce <devnull@localhost>2005-12-26 05:18:21 +0000
committercce <devnull@localhost>2005-12-26 05:18:21 +0000
commita438d9ab87e23a55b6c73f6919c6c696e2d0ba0b (patch)
tree7c8b58ff3ba8452e11afe610dababe536b46de3c /tests/test_httpheaders.py
parent77ae5e47e7f30637c0063df23d90fd4459960526 (diff)
downloadpaste-a438d9ab87e23a55b6c73f6919c6c696e2d0ba0b.tar.gz
- making HTTPHeader not be a string object so that it isn't
accidently used as a key in an WSGI or header tuple - distinguishing between multi-value (but single-line) and multi-entry headers such as WWW-Authenticate and Set-Cookie as discussed on the Web-Sig - removed 'dict' like stuff from environ wrapper so that it isn't accidently used as an environ replacement
Diffstat (limited to 'tests/test_httpheaders.py')
-rw-r--r--tests/test_httpheaders.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_httpheaders.py b/tests/test_httpheaders.py
index 2ac1a48..7345239 100644
--- a/tests/test_httpheaders.py
+++ b/tests/test_httpheaders.py
@@ -7,7 +7,7 @@ def test_sorting():
HTTP_CONTENT_ENCODING, HTTP_ETAG, HTTP_CONTENT_TYPE, HTTP_FROM,
HTTP_EXPIRES, HTTP_RANGE, HTTP_UPGRADE, HTTP_VARY, HTTP_ALLOW]
sample.sort()
- sample = [(x.category, x) for x in sample]
+ sample = [(x.category, str(x)) for x in sample]
assert sample == [
# general headers first
('general', 'Cache-Control'),
@@ -29,4 +29,3 @@ def test_sorting():
('entity', 'Content-Encoding'),
('entity', 'Content-Type'),
('entity', 'Expires')]
-