MCPcopy Index your code
hub / github.com/docker/docker-py / test_from_dict

Method test_from_dict

tests/unit/utils_proxy_test.py:24–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22class ProxyConfigTest(unittest.TestCase):
23
24 def test_from_dict(self):
25 config = ProxyConfig.from_dict({
26 'httpProxy': HTTP,
27 'httpsProxy': HTTPS,
28 'ftpProxy': FTP,
29 'noProxy': NO_PROXY
30 })
31 self.assertEqual(CONFIG.http, config.http)
32 self.assertEqual(CONFIG.https, config.https)
33 self.assertEqual(CONFIG.ftp, config.ftp)
34 self.assertEqual(CONFIG.no_proxy, config.no_proxy)
35
36 def test_new(self):
37 config = ProxyConfig()

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.80

Tested by

no test coverage detected