77from pathlib import Path
88from unittest .mock import patch
99
10- from sshubl .ssh_utils import ssh_forward
10+ from .. sshubl .ssh_utils import ssh_forward
1111
1212
1313class TestSshUtils (unittest .TestCase ):
@@ -19,7 +19,7 @@ def test_ssh_forward(self) -> None:
1919 identifier = uuid .uuid4 ()
2020
2121 # below forwarding request/cancellation will succeed
22- with patch ("sshubl.ssh_utils.subprocess.check_output" ) as check_output_mock :
22+ with patch ("SSHubl. sshubl.ssh_utils.subprocess.check_output" ) as check_output_mock :
2323 check_output_mock .return_value = ""
2424
2525 # "-O forward -L 127.0.0.1:8888:127.0.0.1:22"
@@ -65,7 +65,7 @@ def test_ssh_forward(self) -> None:
6565 self .assertFalse (local_unix_socket .exists ())
6666
6767 # below forwarding request causes 4242 port to be allocated by remote (printed to stdout)
68- with patch ("sshubl.ssh_utils.subprocess.check_output" ) as check_output_mock :
68+ with patch ("SSHubl. sshubl.ssh_utils.subprocess.check_output" ) as check_output_mock :
6969 check_output_mock .return_value = "4242\n "
7070
7171 # "-O forward -R 127.0.0.1:0:[::1]:8888"
@@ -87,7 +87,7 @@ def test_ssh_forward(self) -> None:
8787 )
8888
8989 # below forwarding request fails
90- with patch ("sshubl.ssh_utils.subprocess.check_output" ) as check_output_mock :
90+ with patch ("SSHubl. sshubl.ssh_utils.subprocess.check_output" ) as check_output_mock :
9191 check_output_mock .side_effect = subprocess .CalledProcessError (
9292 1 ,
9393 "" ,
0 commit comments