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

Method test_rename

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

Source from the content-addressed store, hash-verified

763 client.api.remove_container.assert_called_with(FAKE_CONTAINER_ID)
764
765 def test_rename(self):
766 client = make_fake_client()
767 container = client.containers.get(FAKE_CONTAINER_ID)
768 container.rename("foo")
769 client.api.rename.assert_called_with(FAKE_CONTAINER_ID, "foo")
770
771 def test_resize(self):
772 client = make_fake_client()

Callers

nothing calls this directly

Calls 3

make_fake_clientFunction · 0.85
getMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected