(self)
| 12 | class ImageCollectionTest(BaseIntegrationTest): |
| 13 | |
| 14 | def test_build(self): |
| 15 | client = docker.from_env(version=TEST_API_VERSION) |
| 16 | image, _ = client.images.build(fileobj=io.BytesIO( |
| 17 | b"FROM alpine\n" |
| 18 | b"CMD echo hello world" |
| 19 | )) |
| 20 | self.tmp_imgs.append(image.id) |
| 21 | assert client.containers.run(image) == b"hello world\n" |
| 22 | |
| 23 | # @pytest.mark.xfail(reason='Engine 1.13 responds with status 500') |
| 24 | def test_build_with_error(self): |