async def test_aget_with_facts():
    """Test aget method with existing facts."""
    memory_block = FactExtractionMemoryBlock(llm=MockLLM())
    memory_block.facts = ["John lives in New York", "John is a software engineer"]

    result = await memory_block.aget()
    assert (
        result
        == "<fact>John lives in New York</fact>\n<fact>John is a software engineer</fact>"
    )
Test aget method with existing facts.
llama-index-core/tests/memory/blocks/test_fact.py