Skip to content

test_dangling_runtime_subcontainer_bytes()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_dangling_runtime_subcontainer_bytes@49a16fac.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_dangling_runtime_subcontainer_bytes --fork Osaka

Runtime mode EOF Subcontainer test with subcontainer containing dangling bytes.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
def test_dangling_runtime_subcontainer_bytes(
    eof_test: EOFTestFiller,
):
    """Runtime mode EOF Subcontainer test with subcontainer containing dangling bytes."""
    eof_test(
        container=Container(
            sections=[
                eofcreate_code_section,
                Section.Container(
                    container=Container(
                        raw_bytes=returncontract_sub_container.data + b"\x99",
                    ),
                ),
            ],
        ),
        expect_exception=EOFException.INVALID_SECTION_BODIES_SIZE,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test