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

Method test_new

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

Source from the content-addressed store, hash-verified

34 self.assertEqual(CONFIG.no_proxy, config.no_proxy)
35
36 def test_new(self):
37 config = ProxyConfig()
38 self.assertIsNone(config.http)
39 self.assertIsNone(config.https)
40 self.assertIsNone(config.ftp)
41 self.assertIsNone(config.no_proxy)
42
43 config = ProxyConfig(http='a', https='b', ftp='c', no_proxy='d')
44 self.assertEqual(config.http, 'a')
45 self.assertEqual(config.https, 'b')
46 self.assertEqual(config.ftp, 'c')
47 self.assertEqual(config.no_proxy, 'd')
48
49 def test_truthiness(self):
50 assert not ProxyConfig()

Callers

nothing calls this directly

Calls 1

ProxyConfigClass · 0.90

Tested by

no test coverage detected