We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e281ca commit 574faceCopy full SHA for 574face
1 file changed
ci/integration_tests/test_channel.py
@@ -24,7 +24,7 @@
24
from ssh2.session import Session
25
from ssh2.channel import Channel
26
from ssh2.exceptions import SocketSendError
27
-from ssh2.session import LIBSSH2_METHOD_COMP_CS, LIBSSH2_FLAG_COMPRESS
+from ssh2.session import LIBSSH2_METHOD_COMP_CS, LIBSSH2_METHOD_COMP_SC, LIBSSH2_FLAG_COMPRESS
28
29
from .base_test import SSH2TestCase
30
@@ -222,6 +222,8 @@ def test_execute_with_session_compression(self):
222
session.flag(LIBSSH2_FLAG_COMPRESS)
223
algs = session.supported_algs(LIBSSH2_METHOD_COMP_CS)
224
self.assertTrue('zlib' in algs)
225
+ algs = session.supported_algs(LIBSSH2_METHOD_COMP_SC)
226
+ self.assertTrue('zlib' in algs)
227
session.handshake(sock)
228
session.userauth_publickey_fromfile(
229
self.user, self.user_key)
0 commit comments