summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()