()
| 25 | |
| 26 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |
| 27 | def test_append_and_get_all(): |
| 28 | h = HeaderMap() |
| 29 | h.insert("Accept", "application/json") |
| 30 | h.append("Accept", "text/html") |
| 31 | all_vals = list(h.get_all("Accept")) |
| 32 | assert all_vals == [b"text/html", b"application/json"] |
| 33 | assert len(h) == 2 |
| 34 | assert h.keys_len() == 1 |
| 35 | |
| 36 | |
| 37 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |