From 8c7c10d324fdd5f288e1badf9d2a0bce20964231 Mon Sep 17 00:00:00 2001 From: caleb miles Date: Fri, 15 Feb 2013 15:37:54 -0500 Subject: [PATCH] test_s3: test for duplicate response headers. Signed-off-by: caleb miles --- s3tests/functional/test_s3.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 7f9a495..5147ea1 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -1252,6 +1252,11 @@ def test_object_raw_response_headers(): eq(res.getheader('expires'), '123') eq(res.getheader('cache-control'), 'no-cache') + # check for duplicate response headers + h_list = [h[0] for h in res.getheaders()] + h_set = set(h_list) + eq(len(h_list), len(h_set)) + @attr(resource='object') @attr(method='ACLs')