MCPcopy
hub / github.com/sshuttle/sshuttle / test_debug2

Function test_debug2

tests/client/test_helpers.py:73–81  ·  view source on GitHub ↗
(mock_stderr, mock_stdout)

Source from the content-addressed store, hash-verified

71@patch('sshuttle.helpers.sys.stdout')
72@patch('sshuttle.helpers.sys.stderr')
73def test_debug2(mock_stderr, mock_stdout):
74 sshuttle.helpers.debug2("message")
75 assert mock_stdout.mock_calls == [
76 call.flush(),
77 ]
78 assert mock_stderr.mock_calls == [
79 call.write('prefix: message\n'),
80 call.flush(),
81 ]
82
83
84@patch('sshuttle.helpers.logprefix', new='prefix: ')

Callers

nothing calls this directly

Calls 2

flushMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected