MCPcopy
hub / github.com/scrapy/scrapy / _assert_followed_url

Method _assert_followed_url

tests/test_http_response.py:360–365  ·  view source on GitHub ↗
(self, follow_obj, target_url, response=None)

Source from the content-addressed store, hash-verified

358 assert req.flags == ["cached", "allowed"]
359
360 def _assert_followed_url(self, follow_obj, target_url, response=None):
361 if response is None:
362 response = self._links_response()
363 req = response.follow(follow_obj)
364 assert req.url == target_url
365 return req
366
367 def _assert_followed_all_urls(self, follow_obj, target_urls, response=None):
368 if response is None:

Calls 2

_links_responseMethod · 0.95
followMethod · 0.45

Tested by

no test coverage detected