summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoman Mohr <roman@fenkhuber.at>2014-12-21 11:33:36 +0100
committerRoman Mohr <roman@fenkhuber.at>2014-12-21 11:42:41 +0100
commit2d34c38c4d792dcf7347875ae6f0f1f45c21e690 (patch)
tree91274b87bfff76720f54a232a8d0426919a44f2b /tests
parent9b166eea7555bd4d09d9c7959a1c73b9ac19070c (diff)
downloaddocker-py-2d34c38c4d792dcf7347875ae6f0f1f45c21e690.tar.gz
Keep unix socket alive with python3
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_test.py11
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'])