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

Method test_rename_container

tests/unit/api_container_test.py:1130–1142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1128 )
1129
1130 def test_rename_container(self):
1131 self.client.rename(
1132 {'Id': fake_api.FAKE_CONTAINER_ID},
1133 name='foobar'
1134 )
1135
1136 fake_request.assert_called_with(
1137 'POST',
1138 (url_prefix + 'containers/' +
1139 fake_api.FAKE_CONTAINER_ID + '/rename'),
1140 params={'name': 'foobar'},
1141 timeout=DEFAULT_TIMEOUT_SECONDS
1142 )
1143
1144 def test_wait(self):
1145 self.client.wait(fake_api.FAKE_CONTAINER_ID)

Callers

nothing calls this directly

Calls 1

renameMethod · 0.45

Tested by

no test coverage detected