We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689d250 commit 05c0bd4Copy full SHA for 05c0bd4
tests/unit/session_test.py
@@ -2,6 +2,8 @@
2
3
"""Tests suite for session."""
4
5
+import logging
6
+
7
import pytest
8
9
from pylibsshext.errors import LibsshSessionException
@@ -19,3 +21,11 @@ def test_session_connection_refused(free_port_num):
19
21
ssh_session = Session()
20
22
with pytest.raises(LibsshSessionException, match=error_msg):
23
ssh_session.connect(host='127.0.0.1', port=free_port_num)
24
25
26
+def test_session_log_level():
27
+ """Test setting the log level."""
28
+ ssh_session = Session()
29
+ assert ssh_session
30
31
+ ssh_session.set_log_level(logging.DEBUG)
0 commit comments