summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-14 19:18:15 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-14 19:18:15 -0400
commite1fc86ac4f709a6128a83aebd31bc5c283a82fec (patch)
tree629913961726faf46cf1158adf9eb73911271f0c /tests
parent0dcd9111bfc16c894d4555696093fa3a39d9aad0 (diff)
parent7f3851c0fac2705b713fb6882408aa03ec8f9eb7 (diff)
Merge branch '2.4' into 2.5
Diffstat (limited to 'tests')
-rw-r--r--tests/test_client.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index 9191fc01..26de2d37 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -211,6 +211,12 @@ class ClientTest(unittest.TestCase):
stdin, stdout, stderr = self.tc.exec_command("yes")
schan = self.ts.accept(1.0)
+ # Nobody else tests the API of exec_command so let's do it here for
+ # now. :weary:
+ assert isinstance(stdin, paramiko.ChannelFile)
+ assert isinstance(stdout, paramiko.ChannelFile)
+ assert isinstance(stderr, paramiko.ChannelStderrFile)
+
schan.send("Hello there.\n")
schan.send_stderr("This is on stderr.\n")
schan.close()