Skip to content

Commit 05c0bd4

Browse files
committed
test for setting log level
Signed-off-by: Jakub Jelen <[email protected]>
1 parent 689d250 commit 05c0bd4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/unit/session_test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
"""Tests suite for session."""
44

5+
import logging
6+
57
import pytest
68

79
from pylibsshext.errors import LibsshSessionException
@@ -19,3 +21,11 @@ def test_session_connection_refused(free_port_num):
1921
ssh_session = Session()
2022
with pytest.raises(LibsshSessionException, match=error_msg):
2123
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

Comments
 (0)