Skip to content

test_returncode_invalid_index_255()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncode.py::test_returncode_invalid_index_255@bc691d13.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncode.py::test_returncode_invalid_index_255 --fork Osaka

Referring to non-existent container section index 255.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncode.py
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
def test_returncode_invalid_index_255(
    eof_test: EOFTestFiller,
):
    """Referring to non-existent container section index 255."""
    eof_test(
        container_kind=ContainerKind.INITCODE,
        container=Container(
            sections=[
                Section.Code(
                    code=Op.RETURNCODE[255](0, 0),
                ),
                Section.Container(container=Container(sections=[Section.Code(code=Op.INVALID)])),
            ],
        ),
        expect_exception=EOFException.INVALID_CONTAINER_SECTION_INDEX,
    )

Parametrized Test Cases

This test case is only parametrized by fork and fixture format.

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-state_test_from_eof_test
...fork_Osaka-blockchain_test_from_eof_test