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

Method test_list

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

Source from the content-addressed store, hash-verified

56 assert client.containers.run(image) == b"Successfully built abcd1234\n"
57
58 def test_list(self):
59 client = docker.from_env(version=TEST_API_VERSION)
60 image = client.images.pull('alpine:latest')
61 assert image.id in get_ids(client.images.list())
62
63 def test_list_with_repository(self):
64 client = docker.from_env(version=TEST_API_VERSION)

Callers

nothing calls this directly

Calls 4

get_idsFunction · 0.85
from_envMethod · 0.80
pullMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected