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

Method test_pull

tests/integration/models_images_test.py:69–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 assert image.id in get_ids(client.images.list('alpine:latest'))
68
69 def test_pull(self):
70 client = docker.from_env(version=TEST_API_VERSION)
71 image = client.images.pull('alpine:latest')
72 assert 'alpine:latest' in image.attrs['RepoTags']
73
74 def test_pull_with_tag(self):
75 client = docker.from_env(version=TEST_API_VERSION)

Callers

nothing calls this directly

Calls 2

from_envMethod · 0.80
pullMethod · 0.45

Tested by

no test coverage detected