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

Method test_restart_container

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

Source from the content-addressed store, hash-verified

1448 )
1449
1450 def test_restart_container(self):
1451 self.client.restart(fake_api.FAKE_CONTAINER_ID, timeout=2)
1452
1453 fake_request.assert_called_with(
1454 'POST',
1455 (url_prefix + 'containers/' +
1456 fake_api.FAKE_CONTAINER_ID + '/restart'),
1457 params={'t': 2},
1458 timeout=(DEFAULT_TIMEOUT_SECONDS + 2)
1459 )
1460
1461 def test_restart_container_with_dict_instead_of_id(self):
1462 self.client.restart({'Id': fake_api.FAKE_CONTAINER_ID}, timeout=2)

Callers

nothing calls this directly

Calls 1

restartMethod · 0.45

Tested by

no test coverage detected