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

Method test_get

tests/integration/models_networks_test.py:17–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15 assert network.attrs['Labels']['foo'] == "bar"
16
17 def test_get(self):
18 client = docker.from_env(version=TEST_API_VERSION)
19 name = helpers.random_name()
20 network_id = client.networks.create(name).id
21 self.tmp_networks.append(network_id)
22 network = client.networks.get(network_id)
23 assert network.name == name
24
25 def test_list_remove(self):
26 client = docker.from_env(version=TEST_API_VERSION)

Callers

nothing calls this directly

Calls 3

from_envMethod · 0.80
createMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected