Kaydet (Commit) bf41c7fa authored tarafından Joffrey F's avatar Joffrey F

Improve robustness of remove_network integration test

Signed-off-by: 's avatarJoffrey F <joffrey@docker.com>
üst d1b51c39
......@@ -88,13 +88,11 @@ class TestNetworks(BaseAPIIntegrationTest):
@requires_api_version('1.21')
def test_remove_network(self):
initial_size = len(self.client.networks())
net_name, net_id = self.create_network()
self.assertEqual(len(self.client.networks()), initial_size + 1)
assert net_name in [n['Name'] for n in self.client.networks()]
self.client.remove_network(net_id)
self.assertEqual(len(self.client.networks()), initial_size)
assert net_name not in [n['Name'] for n in self.client.networks()]
@requires_api_version('1.21')
def test_connect_and_disconnect_container(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment