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

Method test_exec_start_detached

tests/integration/api_exec_test.py:140–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 assert data.decode('utf-8') == line
139
140 def test_exec_start_detached(self):
141 container = self.client.create_container(TEST_IMG, 'cat',
142 detach=True, stdin_open=True)
143 container_id = container['Id']
144 self.client.start(container_id)
145 self.tmp_containers.append(container_id)
146
147 exec_id = self.client.exec_create(
148 container_id, ['printf', "asdqwe"])
149 assert 'Id' in exec_id
150
151 response = self.client.exec_start(exec_id, detach=True)
152
153 assert response == ""
154
155 def test_exec_inspect(self):
156 container = self.client.create_container(TEST_IMG, 'cat',

Callers

nothing calls this directly

Calls 4

create_containerMethod · 0.80
exec_createMethod · 0.80
exec_startMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected