MCPcopy Index your code
hub / github.com/RustPython/RustPython / call_url_handler

Method call_url_handler

Lib/test/test_pydoc/test_pydoc.py:409–414  ·  view source on GitHub ↗
(self, url, expected_title)

Source from the content-addressed store, hash-verified

407 pkgutil.walk_packages = walk_packages
408
409 def call_url_handler(self, url, expected_title):
410 text = pydoc._url_handler(url, "text/html")
411 result = get_html_title(text)
412 # Check the title to ensure an unexpected error page was not returned
413 self.assertEqual(result, expected_title, text)
414 return text
415
416
417class PydocDocTest(unittest.TestCase):

Callers 2

test_url_requestsMethod · 0.80

Calls 2

get_html_titleFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected