(self)
| 382 | assert container.logs() == b"hello world\n" |
| 383 | |
| 384 | def test_pause(self): |
| 385 | client = docker.from_env(version=TEST_API_VERSION) |
| 386 | container = client.containers.run("alpine", "sleep 300", detach=True) |
| 387 | self.tmp_containers.append(container.id) |
| 388 | container.pause() |
| 389 | container.reload() |
| 390 | assert container.status == "paused" |
| 391 | container.unpause() |
| 392 | container.reload() |
| 393 | assert container.status == "running" |
| 394 | |
| 395 | def test_remove(self): |
| 396 | client = docker.from_env(version=TEST_API_VERSION) |