File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2424from ssh2 .session import Session
2525from ssh2 .channel import Channel
2626from ssh2 .exceptions import SocketSendError
27- from ssh2 .session import LIBSSH2_METHOD_COMP_CS , LIBSSH2_FLAG_COMPRESS
27+ from ssh2 .session import LIBSSH2_METHOD_COMP_CS , LIBSSH2_METHOD_COMP_SC , LIBSSH2_FLAG_COMPRESS
2828
2929from .base_test import SSH2TestCase
3030
@@ -222,6 +222,8 @@ def test_execute_with_session_compression(self):
222222 session .flag (LIBSSH2_FLAG_COMPRESS )
223223 algs = session .supported_algs (LIBSSH2_METHOD_COMP_CS )
224224 self .assertTrue ('zlib' in algs )
225+ algs = session .supported_algs (LIBSSH2_METHOD_COMP_SC )
226+ self .assertTrue ('zlib' in algs )
225227 session .handshake (sock )
226228 session .userauth_publickey_fromfile (
227229 self .user , self .user_key )
You can’t perform that action at this time.
0 commit comments