summaryrefslogtreecommitdiff
path: root/tests/integration_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_test.py')
-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 4710559..666215d 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'])