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

Method test_update

tests/unit/models_containers_test.py:813–818  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

811 client.api.unpause.assert_called_with(FAKE_CONTAINER_ID)
812
813 def test_update(self):
814 client = make_fake_client()
815 container = client.containers.get(FAKE_CONTAINER_ID)
816 container.update(cpu_shares=2)
817 client.api.update_container.assert_called_with(FAKE_CONTAINER_ID,
818 cpu_shares=2)
819
820 def test_wait(self):
821 client = make_fake_client()

Callers

nothing calls this directly

Calls 3

make_fake_clientFunction · 0.85
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected