(self)
| 91 | } |
| 92 | |
| 93 | def test_remove_network(self): |
| 94 | network_id = 'abc12345' |
| 95 | delete = mock.Mock(return_value=response(status_code=200)) |
| 96 | |
| 97 | with mock.patch('docker.api.client.APIClient.delete', delete): |
| 98 | self.client.remove_network(network_id) |
| 99 | |
| 100 | args = delete.call_args |
| 101 | assert args[0][0] == f"{url_prefix}networks/{network_id}" |
| 102 | |
| 103 | def test_inspect_network(self): |
| 104 | network_id = 'abc12345' |
nothing calls this directly
no test coverage detected