Skip to content

test_container_both_kinds_different_sub()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_container_both_kinds_different_sub@b48d1dc8.

Generate fixtures for these test cases for Osaka with:

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

Test multiple kinds of subcontainer at the same level.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
def test_container_both_kinds_different_sub(eof_test: EOFTestFiller):
    """Test multiple kinds of subcontainer at the same level."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.EOFCREATE[0](0, 0, 0, 0) + Op.JUMPF[1],
                ),
                Section.Code(
                    code=Op.RETURNCODE[1](0, 0),
                ),
                returncode_sub_container,
                stop_sub_container,
            ],
            kind=ContainerKind.INITCODE,
        ),
        deployed_container=stop_container,
    )

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