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

Method test_logs

tests/integration/models_containers_test.py:376–382  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 4

from_envMethod · 0.80
runMethod · 0.80
waitMethod · 0.45
logsMethod · 0.45

Tested by

no test coverage detected