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

Method test_remove_network

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

Source from the content-addressed store, hash-verified

84 self.client.create_network(random_name(), driver='host')
85
86 def test_remove_network(self):
87 net_name, net_id = self.create_network()
88 assert net_name in [n['Name'] for n in self.client.networks()]
89
90 self.client.remove_network(net_id)
91 assert net_name not in [n['Name'] for n in self.client.networks()]
92
93 def test_connect_and_disconnect_container(self):
94 net_name, net_id = self.create_network()

Callers

nothing calls this directly

Calls 3

create_networkMethod · 0.95
remove_networkMethod · 0.80
networksMethod · 0.45

Tested by

no test coverage detected