MCPcopy Index your code
hub / github.com/python/cpython / test_good_urls

Method test_good_urls

Lib/test/test_robotparser.py:38–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 return self.agent, url
37
38 def test_good_urls(self):
39 for url in self.good:
40 agent, url = self.get_agent_and_url(url)
41 with self.subTest(url=url, agent=agent):
42 self.assertTrue(self.parser.can_fetch(agent, url))
43
44 def test_bad_urls(self):
45 for url in self.bad:

Callers

nothing calls this directly

Calls 4

get_agent_and_urlMethod · 0.95
assertTrueMethod · 0.80
can_fetchMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected