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

Method test_inspect_network

tests/integration/api_network_test.py:35–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 assert [n['Id'] for n in networks_by_partial_id] == [net_id]
34
35 def test_inspect_network(self):
36 net_name, net_id = self.create_network()
37
38 net = self.client.inspect_network(net_id)
39 assert net['Id'] == net_id
40 assert net['Name'] == net_name
41 assert net['Driver'] == 'bridge'
42 assert net['Scope'] == 'local'
43 assert net['IPAM']['Driver'] == 'default'
44
45 def test_create_network_with_ipam_config(self):
46 _, net_id = self.create_network(

Callers

nothing calls this directly

Calls 2

create_networkMethod · 0.95
inspect_networkMethod · 0.80

Tested by

no test coverage detected