(self, httpbin, method)
| 128 | |
| 129 | @pytest.mark.parametrize("method", ("POST", "PUT", "PATCH", "OPTIONS")) |
| 130 | def test_no_body_content_length(self, httpbin, method): |
| 131 | req = requests.Request(method, httpbin(method.lower())).prepare() |
| 132 | assert req.headers["Content-Length"] == "0" |
| 133 | |
| 134 | @pytest.mark.parametrize("method", ("POST", "PUT", "PATCH", "OPTIONS")) |
| 135 | def test_empty_content_length(self, httpbin, method): |