async def test_initialization_with_content_blocks():
    """Test initialization of StaticMemoryBlock with a list of ContentBlock."""
    content_blocks = [
        TextBlock(text="First block"),
        TextBlock(text="Second block")
    ]
    memory_block = StaticMemoryBlock(static_content=content_blocks, name="CustomName")

    assert memory_block.name == "CustomName"
    assert len(memory_block.static_content) == 2
    assert memory_block.static_content[0].text == "First block"
    assert memory_block.static_content[1].text == "Second block"
Test initialization of StaticMemoryBlock with a list of ContentBlock.
llama-index-core/tests/memory/blocks/test_static.py