File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,15 @@ def exec_second_command(ssh_channel):
38
38
"""Check the standard output of ``exec_command()`` as a string."""
39
39
u_cmd = ssh_channel .exec_command ('echo -n Hello Again' )
40
40
assert u_cmd .returncode == 0
41
+ assert u_cmd .stderr .decode () == '' # noqa: WPS302
41
42
assert u_cmd .stdout .decode () == u'Hello Again' # noqa: WPS302
42
43
43
44
44
45
def test_exec_command (ssh_channel ):
45
46
"""Test getting the output of a remotely executed command."""
46
47
u_cmd = ssh_channel .exec_command ('echo -n Hello World' )
47
48
assert u_cmd .returncode == 0
49
+ assert u_cmd .stderr .decode () == ''
48
50
assert u_cmd .stdout .decode () == u'Hello World' # noqa: WPS302
49
51
# Test that repeated calls to exec_command do not segfault.
50
52
You can’t perform that action at this time.
0 commit comments