MCPcopy
hub / github.com/docker/docker-py / test_start

Method test_start

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

Source from the content-addressed store, hash-verified

423 assert first_started_at != second_started_at
424
425 def test_start(self):
426 client = docker.from_env(version=TEST_API_VERSION)
427 container = client.containers.create("alpine", "sleep 50", detach=True)
428 self.tmp_containers.append(container.id)
429 assert container.status == "created"
430 container.start()
431 container.reload()
432 assert container.status == "running"
433
434 def test_stats(self):
435 client = docker.from_env(version=TEST_API_VERSION)

Callers

nothing calls this directly

Calls 4

from_envMethod · 0.80
createMethod · 0.45
startMethod · 0.45
reloadMethod · 0.45

Tested by

no test coverage detected