MCPcopy
hub / github.com/docker/docker-py / test_pull

Method test_pull

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

Source from the content-addressed store, hash-verified

36
37class PullImageTest(BaseAPIIntegrationTest):
38 def test_pull(self):
39 try:
40 self.client.remove_image('hello-world')
41 except docker.errors.APIError:
42 pass
43 res = self.client.pull('hello-world')
44 self.tmp_imgs.append('hello-world')
45 assert isinstance(res, str)
46 assert len(self.client.images('hello-world')) >= 1
47 img_info = self.client.inspect_image('hello-world')
48 assert 'Id' in img_info
49
50 def test_pull_streaming(self):
51 try:

Callers

nothing calls this directly

Calls 4

remove_imageMethod · 0.80
inspect_imageMethod · 0.80
pullMethod · 0.45
imagesMethod · 0.45

Tested by

no test coverage detected