MCPcopy Create free account
hub / github.com/sshuttle/sshuttle / test_notify_socket_not_there

Function test_notify_socket_not_there

tests/client/test_sdnotify.py:15–17  ·  view source on GitHub ↗
(mock_get)

Source from the content-addressed store, hash-verified

13
14@patch('sshuttle.sdnotify.os.environ.get')
15def test_notify_socket_not_there(mock_get):
16 mock_get.return_value = '/run/valid_nonexistent_path'
17 assert not sshuttle.sdnotify.send(sshuttle.sdnotify.ready())
18
19
20@patch('sshuttle.sdnotify.os.environ.get')

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected