Home / Function/ tests_billion_laughs_attack() — langchain Function Reference

tests_billion_laughs_attack() — langchain Function Reference

Architecture documentation for the tests_billion_laughs_attack() function in test_xml_parser.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  81e02406_b4dc_a9f0_25ee_a94afe00a729["tests_billion_laughs_attack()"]
  a1505d99_fe37_04cb_8c81_2640a51076f6["test_xml_parser.py"]
  81e02406_b4dc_a9f0_25ee_a94afe00a729 -->|defined in| a1505d99_fe37_04cb_8c81_2640a51076f6
  style 81e02406_b4dc_a9f0_25ee_a94afe00a729 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_xml_parser.py lines 150–158

async def tests_billion_laughs_attack() -> None:
    # Testing with standard XML parser since it's safe to use in
    # newer versions of Python
    parser = XMLOutputParser(parser="xml")
    with pytest.raises(OutputParserException):
        parser.parse(MALICIOUS_XML)

    with pytest.raises(OutputParserException):
        await parser.aparse(MALICIOUS_XML)

Subdomains

Frequently Asked Questions

What does tests_billion_laughs_attack() do?
tests_billion_laughs_attack() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_xml_parser.py.
Where is tests_billion_laughs_attack() defined?
tests_billion_laughs_attack() is defined in libs/core/tests/unit_tests/output_parsers/test_xml_parser.py at line 150.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free