Skip to content

test_system_contract_errors()

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

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 consolidation 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
@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 consolidation 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.