async def test_initialization_with_string():
    """Test initialization of StaticMemoryBlock with a string."""
    static_text = "This is some static content"
    memory_block = StaticMemoryBlock(static_content=static_text)

    assert memory_block.name == "StaticContent"
    assert len(memory_block.static_content) == 1
    assert isinstance(memory_block.static_content[0], TextBlock)
    assert memory_block.static_content[0].text == static_text
Test initialization of StaticMemoryBlock with a string.
llama-index-core/tests/memory/blocks/test_static.py