test_dns_resolution_failure() — langchain Function Reference
Architecture documentation for the test_dns_resolution_failure() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0391ee8e_890a_2721_a500_5de6e0a6773e["test_dns_resolution_failure()"] 55eb5d18_546a_f8ab_e6ce_af072e9c336d["TestValidateSafeUrl"] 0391ee8e_890a_2721_a500_5de6e0a6773e -->|defined in| 55eb5d18_546a_f8ab_e6ce_af072e9c336d style 0391ee8e_890a_2721_a500_5de6e0a6773e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 172–175
def test_dns_resolution_failure(self) -> None:
"""Test handling of DNS resolution failures."""
with pytest.raises(ValueError, match="resolve"):
validate_safe_url("http://this-domain-definitely-does-not-exist-12345.com")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_dns_resolution_failure() do?
test_dns_resolution_failure() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_dns_resolution_failure() defined?
test_dns_resolution_failure() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 172.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free