diff options
author | Roman Mohr <roman@fenkhuber.at> | 2014-12-21 11:33:36 +0100 |
---|---|---|
committer | Roman Mohr <roman@fenkhuber.at> | 2014-12-21 11:42:41 +0100 |
commit | 2d34c38c4d792dcf7347875ae6f0f1f45c21e690 (patch) | |
tree | 91274b87bfff76720f54a232a8d0426919a44f2b /tests | |
parent | 9b166eea7555bd4d09d9c7959a1c73b9ac19070c (diff) | |
download | docker-py-2d34c38c4d792dcf7347875ae6f0f1f45c21e690.tar.gz |
Keep unix socket alive with python3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration_test.py b/tests/integration_test.py index 801dd82..f06fbcf 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -870,6 +870,17 @@ class TestExecuteCommandStreaming(BaseTestCase): self.assertEqual(res, expected) +class TestRunContainerStreaming(BaseTestCase): + def runTest(self): + container = self.client.create_container('busybox', '/bin/sh', + detach=True, stdin_open=True) + id = container['Id'] + self.client.start(id) + self.tmp_containers.append(id) + socket = self.client.attach_socket(container, ws=False) + self.assertTrue(socket.fileno() > -1) + + class TestPauseUnpauseContainer(BaseTestCase): def runTest(self): container = self.client.create_container('busybox', ['sleep', '9999']) |