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

Method test_inspect_node

tests/integration/api_swarm_test.py:190–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

188
189 @requires_api_version('1.24')
190 def test_inspect_node(self):
191 node_id = self.init_swarm()
192 assert node_id
193 nodes_list = self.client.nodes()
194 assert len(nodes_list) == 1
195 node = nodes_list[0]
196 node_data = self.client.inspect_node(node['ID'])
197 assert node['ID'] == node_data['ID']
198 assert node_id == node['ID']
199 assert node['Version'] == node_data['Version']
200
201 @requires_api_version('1.24')
202 def test_update_node(self):

Callers

nothing calls this directly

Calls 3

inspect_nodeMethod · 0.80
init_swarmMethod · 0.45
nodesMethod · 0.45

Tested by

no test coverage detected