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

Method test_stop_container

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

Source from the content-addressed store, hash-verified

1373 )
1374
1375 def test_stop_container(self):
1376 timeout = 2
1377
1378 self.client.stop(fake_api.FAKE_CONTAINER_ID, timeout=timeout)
1379
1380 fake_request.assert_called_with(
1381 'POST',
1382 url_prefix + 'containers/' + fake_api.FAKE_CONTAINER_ID + '/stop',
1383 params={'t': timeout},
1384 timeout=(DEFAULT_TIMEOUT_SECONDS + timeout)
1385 )
1386
1387 def test_stop_container_with_dict_instead_of_id(self):
1388 timeout = 2

Callers

nothing calls this directly

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected