From c7952371b718b6eb8d14e8fb8acddcdcbd8def5e Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 15 Jun 2012 17:40:08 +1200 Subject: Fix a problem in ODictCaseless that could cause duplicate headers. --- test/test_flow.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/test_flow.py b/test/test_flow.py index 59d130f7..89577ddb 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -1052,6 +1052,12 @@ class TestODictCaseless: def setUp(self): self.od = flow.ODictCaseless() + def test_override(self): + o = flow.ODictCaseless() + o.add('T', 'application/x-www-form-urlencoded; charset=UTF-8') + o["T"] = ["foo"] + assert o["T"] == ["foo"] + def test_case_preservation(self): self.od["Foo"] = ["1"] assert "foo" in self.od -- cgit v1.2.3