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

Method test_get_load_image

tests/integration/api_image_test.py:252–259  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

250 # Docs say output is available in 1.23, but this test fails on 1.12.0
251 @requires_api_version('1.24')
252 def test_get_load_image(self):
253 test_img = 'hello-world:latest'
254 self.client.pull(test_img)
255 data = self.client.get_image(test_img)
256 assert data
257 output = self.client.load_image(data)
258 assert any(line for line in output
259 if f'Loaded image: {test_img}' in line.get('stream', ''))
260
261 @contextlib.contextmanager
262 def temporary_http_file_server(self, stream):

Callers

nothing calls this directly

Calls 4

get_imageMethod · 0.80
load_imageMethod · 0.80
pullMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected