diff options
author | Scott Kuhl <kuhl@mtu.edu> | 2022-01-07 13:21:16 -0500 |
---|---|---|
committer | Scott Kuhl <kuhl@mtu.edu> | 2022-01-07 13:21:16 -0500 |
commit | 80a822e07921b0d1325bec0b28f4001550ebddd2 (patch) | |
tree | 7f9bf7ca2afc8a1bd728b92a2de9c7a34a8e55b9 /tests | |
parent | 8e826cfa7d64f5baa60c074d63e9bfe7076c5cd3 (diff) |
Fix flake8 and unit test errors introduced by use_pty fixes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/test_firewall.py | 2 | ||||
-rw-r--r-- | tests/client/test_helpers.py | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/tests/client/test_firewall.py b/tests/client/test_firewall.py index d249361..76aac89 100644 --- a/tests/client/test_firewall.py +++ b/tests/client/test_firewall.py @@ -15,7 +15,7 @@ NSLIST {inet},1.2.3.33 {inet6},2404:6800:4004:80c::33 PORTS 1024,1025,1026,1027 -GO 1 - 0x01 +GO 1 - 0x01 12345 HOST 1.2.3.3,existing """.format(inet=AF_INET, inet6=AF_INET6)) stdout = Mock() diff --git a/tests/client/test_helpers.py b/tests/client/test_helpers.py index 45e7ea5..8e69d45 100644 --- a/tests/client/test_helpers.py +++ b/tests/client/test_helpers.py @@ -24,19 +24,19 @@ def test_log(mock_stderr, mock_stdout): call.flush(), ] assert mock_stderr.mock_calls == [ - call.write('prefix: message\n'), + call.write('prefix: message\r\n'), call.flush(), - call.write('prefix: abc\n'), + call.write('prefix: abc\r\n'), call.flush(), - call.write('prefix: message 1\n'), + call.write('prefix: message 1\r\n'), call.flush(), - call.write('prefix: message 2\n'), - call.write(' line2\n'), - call.write(' line3\n'), + call.write('prefix: message 2\r\n'), + call.write(' line2\r\n'), + call.write(' line3\r\n'), call.flush(), - call.write('prefix: message 3\n'), - call.write(' line2\n'), - call.write(' line3\n'), + call.write('prefix: message 3\r\n'), + call.write(' line2\r\n'), + call.write(' line3\r\n'), call.flush(), ] @@ -51,7 +51,7 @@ def test_debug1(mock_stderr, mock_stdout): call.flush(), ] assert mock_stderr.mock_calls == [ - call.write('prefix: message\n'), + call.write('prefix: message\r\n'), call.flush(), ] @@ -76,7 +76,7 @@ def test_debug2(mock_stderr, mock_stdout): call.flush(), ] assert mock_stderr.mock_calls == [ - call.write('prefix: message\n'), + call.write('prefix: message\r\n'), call.flush(), ] @@ -101,7 +101,7 @@ def test_debug3(mock_stderr, mock_stdout): call.flush(), ] assert mock_stderr.mock_calls == [ - call.write('prefix: message\n'), + call.write('prefix: message\r\n'), call.flush(), ] |