(monkeypatch, auto, location, expect)
| 1172 | ), |
| 1173 | ) |
| 1174 | def test_location_header_autocorrect(monkeypatch, auto, location, expect): |
| 1175 | monkeypatch.setattr(wrappers.Response, "autocorrect_location_header", auto) |
| 1176 | env = create_environ("/a/b/c") |
| 1177 | resp = wrappers.Response("Hello World!") |
| 1178 | resp.headers["Location"] = location |
| 1179 | assert resp.get_wsgi_headers(env)["Location"] == expect |
| 1180 | |
| 1181 | |
| 1182 | def test_204_and_1XX_response_has_no_content_length(): |
nothing calls this directly
no test coverage detected