<filename>raiden/tests/unit/test_rpc.py
from raiden.constants import EthClient
from raiden.network.rpc.client import ClientErrorInspectResult, inspect_client_error


def test_inspect_client_error():
    """Regression test for issue https://github.com/raiden-network/raiden/issues/3005"""
    errorstr = (
        "{'code': -32015, 'message': 'Transaction execution error.', 'data': "
        "'Internal(\"Requires higher than upper limit of 80000000\")'}"
    )
    exception = ValueError(errorstr)

    result = inspect_client_error(exception, EthClient.PARITY)
    assert result == ClientErrorInspectResult.ALWAYS_FAIL

<filename>raiden/tests/unit/test_rpc.py
from raiden.constants import EthClient
from raiden.network.rpc.client import ClientErrorInspectResult, inspect_client_error


def test_inspect_client_error():
    """Regression test for issue https://github.com/raiden-network/raiden/issues/3005"""
    errorstr = (
        "{'code': -32015, 'message': 'Transaction execution error.', 'data': "
        "'Internal(\"Requires higher than upper limit of 80000000\")'}"
    )
    exception = ValueError(errorstr)

    result = inspect_client_error(exception, EthClient.PARITY)
    assert result == ClientErrorInspectResult.ALWAYS_FAIL

Regression test for issue https://github.com/raiden-network/raiden/issues/3005