()
| 12 | |
| 13 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |
| 14 | def test_insert_and_get(): |
| 15 | h = HeaderMap() |
| 16 | h.insert("Content-Type", "application/json") |
| 17 | assert h.get("Content-Type") == b"application/json" |
| 18 | assert h["Content-Type"] == b"application/json" |
| 19 | assert h.contains_key("Content-Type") |
| 20 | assert "Content-Type" in h |
| 21 | assert not h.is_empty() |
| 22 | assert len(h) == 1 |
| 23 | assert h.keys_len() == 1 |
| 24 | |
| 25 | |
| 26 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |