Skip to content

test_system_contract_errors()

Documentation for tests/prague/eip7251_consolidations/test_modified_consolidation_contract.py::test_system_contract_errors@21507778.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/prague/eip7251_consolidations/test_modified_consolidation_contract.py::test_system_contract_errors --fork Amsterdam

Test system contract raising different errors when called by the system account at the end of the block execution.

To see the list of generated tests, please refer to the generate_system_contract_error_test decorator definition.

Source code in tests/prague/eip7251_consolidations/test_modified_consolidation_contract.py
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
@pytest.mark.parametrize(
    "system_contract",
    [Address(Spec_EIP7251.CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS)],
)
@generate_system_contract_error_test(  # type: ignore[arg-type]
    max_gas_limit=Spec_EIP7251.SYSTEM_CALL_GAS_LIMIT,
)
def test_system_contract_errors() -> None:
    """
    Test system contract raising different errors when called by the system
    account at the end of the block execution.

    To see the list of generated tests, please refer to the
    `generate_system_contract_error_test` decorator definition.
    """
    pass

Parametrized Test Cases

This test generates 4 parametrized test cases across 3 forks.