(self)
| 211 | ) |
| 212 | |
| 213 | def test_detach_with_config_file(self): |
| 214 | self.client._general_configs['detachKeys'] = 'ctrl-p' |
| 215 | container = self.client.create_container( |
| 216 | TEST_IMG, 'cat', detach=True, stdin_open=True |
| 217 | ) |
| 218 | id = container['Id'] |
| 219 | self.client.start(id) |
| 220 | self.tmp_containers.append(id) |
| 221 | |
| 222 | exec_id = self.client.exec_create( |
| 223 | id, 'cat', stdin=True, tty=True, stdout=True |
| 224 | ) |
| 225 | sock = self.client.exec_start(exec_id, tty=True, socket=True) |
| 226 | self.addCleanup(sock.close) |
| 227 | |
| 228 | assert_cat_socket_detached_with_keys(sock, [ctrl_with('p')]) |
| 229 | |
| 230 | |
| 231 | class ExecDemuxTest(BaseAPIIntegrationTest): |
nothing calls this directly
no test coverage detected