(self)
| 374 | assert container.status == 'exited' |
| 375 | |
| 376 | def test_logs(self): |
| 377 | client = docker.from_env(version=TEST_API_VERSION) |
| 378 | container = client.containers.run("alpine", "echo hello world", |
| 379 | detach=True) |
| 380 | self.tmp_containers.append(container.id) |
| 381 | container.wait() |
| 382 | assert container.logs() == b"hello world\n" |
| 383 | |
| 384 | def test_pause(self): |
| 385 | client = docker.from_env(version=TEST_API_VERSION) |