MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_both_set

Method test_both_set

python/python3/tornado/test/httpclient_test.py:741–745  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

739 self.assertEqual(proxy.network_interface, "foo")
740
741 def test_both_set(self):
742 proxy = _RequestProxy(
743 HTTPRequest("http://example.com/", proxy_host="foo"), dict(proxy_host="bar")
744 )
745 self.assertEqual(proxy.proxy_host, "foo")
746
747 def test_neither_set(self):
748 proxy = _RequestProxy(HTTPRequest("http://example.com/"), dict())

Callers

nothing calls this directly

Calls 2

_RequestProxyClass · 0.90
HTTPRequestClass · 0.90

Tested by

no test coverage detected