# Path: modernrpc/exceptions.py
# RPC_INTERNAL_ERROR = -32603
# 
# RPC_METHOD_NOT_FOUND = -32601
# 
# RPC_INVALID_REQUEST = -32600


import pytest
    import requests
from modernrpc.exceptions import (
    RPC_INTERNAL_ERROR,
    RPC_METHOD_NOT_FOUND,
    RPC_INVALID_REQUEST,
)
    assert isinstance(result, jsonrpc_client.batch_result_klass)
    assert result == [
        {"id": 0, "jsonrpc": "2.0", "result": 15},
        {
            "id": 1,
            "jsonrpc": "2.0",
            "error": {
                "code": RPC_METHOD_NOT_FOUND,
                "message": 'Method not found: "unknown_method"',
            },
        },
        {"id": 2, "jsonrpc": "2.0", "result": 16},
    ]


def test_jsonrpc_batch_with_zero_division_error(jsonrpc_client):
    result = jsonrpc_client.batch_request(
        [
            ("add", [5, 10]),
            ("divide", [9, 0]),
            ("add", [8, 8]),
        ]
    )
    assert isinstance(result, jsonrpc_client.batch_result_klass)
    assert result == [
        {"id": 0, "jsonrpc": "2.0", "result": 15},
        {
            "id": 1,
            "jsonrpc": "2.0",
            "error": {

# Path: modernrpc/exceptions.py
# RPC_INTERNAL_ERROR = -32603
# 
# RPC_METHOD_NOT_FOUND = -32601
# 
# RPC_INVALID_REQUEST = -32600


# Path: tests/functional/test_multicall_batch.py
import pytest
    import requests
from modernrpc.exceptions import (
    RPC_INTERNAL_ERROR,
    RPC_METHOD_NOT_FOUND,
    RPC_INVALID_REQUEST,
)

    assert isinstance(result, jsonrpc_client.batch_result_klass)
    assert result == [
        {"id": 0, "jsonrpc": "2.0", "result": 15},
        {
            "id": 1,
            "jsonrpc": "2.0",
            "error": {
                "code": RPC_METHOD_NOT_FOUND,
                "message": 'Method not found: "unknown_method"',
            },
        },
        {"id": 2, "jsonrpc": "2.0", "result": 16},
    ]


def test_jsonrpc_batch_with_zero_division_error(jsonrpc_client):
    result = jsonrpc_client.batch_request(
        [
            ("add", [5, 10]),
            ("divide", [9, 0]),
            ("add", [8, 8]),
        ]
    )
    assert isinstance(result, jsonrpc_client.batch_result_klass)
    assert result == [
        {"id": 0, "jsonrpc": "2.0", "result": 15},
        {
            "id": 1,
            "jsonrpc": "2.0",
            "error": {

                "code": RPC_INTERNAL_ERROR,