(self)
| 18 | |
| 19 | class 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) |