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

Method test_connect

tests/unit/models_networks_test.py:42–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40class NetworkTest(unittest.TestCase):
41
42 def test_connect(self):
43 client = make_fake_client()
44 network = client.networks.get(FAKE_NETWORK_ID)
45 network.connect(FAKE_CONTAINER_ID)
46 client.api.connect_container_to_network.assert_called_once_with(
47 FAKE_CONTAINER_ID,
48 FAKE_NETWORK_ID
49 )
50
51 def test_disconnect(self):
52 client = make_fake_client()

Callers

nothing calls this directly

Calls 3

make_fake_clientFunction · 0.85
getMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected