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

Function build_test_opener

Lib/test/test_urllib2.py:481–485  ·  view source on GitHub ↗
(*handler_instances)

Source from the content-addressed store, hash-verified

479
480
481def build_test_opener(*handler_instances):
482 opener = OpenerDirector()
483 for h in handler_instances:
484 opener.add_handler(h)
485 return opener
486
487
488class MockHTTPHandler(urllib.request.HTTPHandler):

Callers 2

test_cookie_redirectMethod · 0.85

Calls 2

add_handlerMethod · 0.95
OpenerDirectorClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…