diff options
author | Brian May <brian@linuxpenguins.xyz> | 2015-12-15 14:23:42 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2015-12-15 14:23:42 +1100 |
commit | ba60d22478252ce3aa235a1a42a9b3bbab7fd3c2 (patch) | |
tree | 818ab9280ecbe3c1d01a261546a7d5aca1ad8fd1 | |
parent | 3db38c992ac51ff7d9a5764fe4e8aa202212c019 (diff) |
Add another test.
-rw-r--r-- | sshuttle/tests/test_helpers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sshuttle/tests/test_helpers.py b/sshuttle/tests/test_helpers.py index 2c111ff..67c6682 100644 --- a/sshuttle/tests/test_helpers.py +++ b/sshuttle/tests/test_helpers.py @@ -11,6 +11,7 @@ import sshuttle.helpers @patch('sshuttle.helpers.sys.stderr') def test_log(mock_stderr, mock_stdout): sshuttle.helpers.log("message") + sshuttle.helpers.log("abc") sshuttle.helpers.log("message 1\n") sshuttle.helpers.log("message 2\nline2\nline3\n") sshuttle.helpers.log("message 3\nline2\nline3") @@ -19,10 +20,13 @@ def test_log(mock_stderr, mock_stdout): call.flush(), call.flush(), call.flush(), + call.flush(), ] assert mock_stderr.mock_calls == [ call.write('prefix: message'), call.flush(), + call.write('prefix: abc'), + call.flush(), call.write('prefix: message 1\n'), call.flush(), call.write('prefix: message 2\n'), |