(path, header_value="Cookie")
| 552 | return "" |
| 553 | |
| 554 | def expect(path, header_value="Cookie"): |
| 555 | rv = client.get(path) |
| 556 | |
| 557 | if header_value: |
| 558 | # The 'Vary' key should exist in the headers only once. |
| 559 | assert len(rv.headers.get_all("Vary")) == 1 |
| 560 | assert rv.headers["Vary"] == header_value |
| 561 | else: |
| 562 | assert "Vary" not in rv.headers |
| 563 | |
| 564 | expect("/set") |
| 565 | expect("/get") |
no test coverage detected