MCPcopy
hub / github.com/sshuttle/sshuttle / test_debug3

Function test_debug3

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

Source from the content-addressed store, hash-verified

96@patch('sshuttle.helpers.sys.stdout')
97@patch('sshuttle.helpers.sys.stderr')
98def 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: ')

Callers

nothing calls this directly

Calls 2

flushMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected