MCPcopy
hub / github.com/scrapy/scrapy / _test_request

Method _test_request

tests/test_utils_request.py:327–329  ·  view source on GitHub ↗
(self, request_object, expected_curl_command)

Source from the content-addressed store, hash-verified

325
326class TestRequestToCurl:
327 def _test_request(self, request_object, expected_curl_command):
328 curl_command = request_to_curl(request_object)
329 assert curl_command == expected_curl_command
330
331 def test_get(self):
332 request_object = Request("https://www.example.com")

Callers 5

test_getMethod · 0.95
test_postMethod · 0.95
test_headersMethod · 0.95
test_cookies_dictMethod · 0.95
test_cookies_listMethod · 0.95

Calls 1

request_to_curlFunction · 0.90

Tested by

no test coverage detected