Skip to content

test_above_max_size_raw()

Documentation for tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_container_size.py::test_above_max_size_raw@21fb11c8.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_container_size.py::test_above_max_size_raw --fork Osaka

Verify EOF container invalid above maximum size, regardless of header contents.

Source code in tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_container_size.py
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@pytest.mark.parametrize(
    "size",
    [MAX_INITCODE_SIZE + 1, MAX_INITCODE_SIZE * 2],
)
def test_above_max_size_raw(
    eof_test: EOFTestFiller,
    size: int,
):
    """Verify EOF container invalid above maximum size, regardless of header contents."""
    code = Op.INVALID * size
    eof_test(
        container=bytes(code),
        expect_exception=EOFException.CONTAINER_SIZE_ABOVE_LIMIT,
    )

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) size
...fork_Osaka-eof_test-size_49153 49153
...fork_Osaka-eof_test-size_98304 98304