MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / test_notify_socket_error

Function test_notify_socket_error

tests/client/test_sdnotify.py:28–31  ·  view source on GitHub ↗
(mock_get, mock_socket)

Source from the content-addressed store, hash-verified

26@patch('sshuttle.sdnotify.socket.socket')
27@patch('sshuttle.sdnotify.os.environ.get')
28def test_notify_socket_error(mock_get, mock_socket):
29 mock_get.return_value = '/run/valid_path'
30 mock_socket.side_effect = socket.error('test error')
31 assert not sshuttle.sdnotify.send(sshuttle.sdnotify.ready())
32
33
34@patch('sshuttle.sdnotify.socket.socket')

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected