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

Method test_images

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

Source from the content-addressed store, hash-verified

18
19class ListImagesTest(BaseAPIIntegrationTest):
20 def test_images(self):
21 res1 = self.client.images(all=True)
22 assert 'Id' in res1[0]
23 res10 = res1[0]
24 assert 'Created' in res10
25 assert 'RepoTags' in res10
26 distinct = []
27 for img in res1:
28 if img['Id'] not in distinct:
29 distinct.append(img['Id'])
30 assert len(distinct) == self.client.info()['Images']
31
32 def test_images_quiet(self):
33 res1 = self.client.images(quiet=True)

Callers

nothing calls this directly

Calls 2

imagesMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected