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

Method get_agent_and_url

Lib/test/test_robotparser.py:32–36  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

30 self.parser.parse(lines)
31
32 def get_agent_and_url(self, url):
33 if isinstance(url, tuple):
34 agent, url = url
35 return agent, url
36 return self.agent, url
37
38 def test_good_urls(self):
39 for url in self.good:

Callers 3

test_good_urlsMethod · 0.95
test_bad_urlsMethod · 0.95
test_request_rateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected