(self, httpbin, method)
| 123 | |
| 124 | @pytest.mark.parametrize("method", ("GET", "HEAD")) |
| 125 | def test_no_content_length(self, httpbin, method): |
| 126 | req = requests.Request(method, httpbin(method.lower())).prepare() |
| 127 | assert "Content-Length" not in req.headers |
| 128 | |
| 129 | @pytest.mark.parametrize("method", ("POST", "PUT", "PATCH", "OPTIONS")) |
| 130 | def test_no_body_content_length(self, httpbin, method): |