import textwrap from ldp.llms.prompts import indent_xml def test_indent_xml(): xml = "fooline1\nline2\nline3" expected = textwrap.dedent( """\ foo line1 line2 line3 """ ) assert indent_xml(xml) == expected