(mock_stderr, mock_stdout)
| 96 | @patch('sshuttle.helpers.sys.stdout') |
| 97 | @patch('sshuttle.helpers.sys.stderr') |
| 98 | def test_debug3(mock_stderr, mock_stdout): |
| 99 | sshuttle.helpers.debug3("message") |
| 100 | assert mock_stdout.mock_calls == [ |
| 101 | call.flush(), |
| 102 | ] |
| 103 | assert mock_stderr.mock_calls == [ |
| 104 | call.write('prefix: message\n'), |
| 105 | call.flush(), |
| 106 | ] |
| 107 | |
| 108 | |
| 109 | @patch('sshuttle.helpers.logprefix', new='prefix: ') |