(mock_get, mock_socket)
| 26 | @patch('sshuttle.sdnotify.socket.socket') |
| 27 | @patch('sshuttle.sdnotify.os.environ.get') |
| 28 | def 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') |