MCPcopy
hub / github.com/scrapy/scrapy / test_follow_all_flags

Method test_follow_all_flags

tests/test_http_response_text.py:405–414  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

403 assert fol.flags == ["cached", "allowed"]
404
405 def test_follow_all_flags(self):
406 re = self.response_class("http://www.example.com/")
407 urls = [
408 "http://www.example.com/",
409 "http://www.example.com/2",
410 "http://www.example.com/foo",
411 ]
412 fol = re.follow_all(urls, flags=["cached", "allowed"])
413 for req in fol:
414 assert req.flags == ["cached", "allowed"]
415
416 def test_follow_all_css(self):
417 expected = [

Callers

nothing calls this directly

Calls 1

follow_allMethod · 0.45

Tested by

no test coverage detected