def METHOD_NAME(created_socket, crypt):
    created_socket.sendall.side_effect = socket.error('sendall error')
    assert crypt.raw_daemon_request(data={}) == {
        'errno': None,
        'error': 'sendall error',
        'retryable': False,
        'status': 1
    }