()
| 236 | |
| 237 | |
| 238 | def test_header_set_duplication_bug(): |
| 239 | headers = Headers([("Content-Type", "text/html"), ("Foo", "bar"), ("Blub", "blah")]) |
| 240 | headers["blub"] = "hehe" |
| 241 | headers["blafasel"] = "humm" |
| 242 | assert headers == Headers( |
| 243 | [ |
| 244 | ("Content-Type", "text/html"), |
| 245 | ("Foo", "bar"), |
| 246 | ("blub", "hehe"), |
| 247 | ("blafasel", "humm"), |
| 248 | ] |
| 249 | ) |
| 250 | |
| 251 | |
| 252 | @pytest.mark.parametrize( |