(self)
| 359 | self._test_request(request_object, expected_curl_command) |
| 360 | |
| 361 | def test_cookies_dict(self): |
| 362 | request_object = Request( |
| 363 | "https://www.httpbin.org/post", |
| 364 | method="POST", |
| 365 | cookies={"foo": "bar"}, |
| 366 | body=json.dumps({"foo": "bar"}), |
| 367 | ) |
| 368 | expected_curl_command = ( |
| 369 | "curl -X POST https://www.httpbin.org/post" |
| 370 | " --data-raw '{\"foo\": \"bar\"}' --cookie 'foo=bar'" |
| 371 | ) |
| 372 | self._test_request(request_object, expected_curl_command) |
| 373 | |
| 374 | def test_cookies_list(self): |
| 375 | request_object = Request( |
nothing calls this directly
no test coverage detected