test_is_localhost_ips() — langchain Function Reference
Architecture documentation for the test_is_localhost_ips() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD eb01006c_f7b1_2a80_9433_1e2c4b57a317["test_is_localhost_ips()"] 5d0af313_84be_a251_2294_d136a0904196["TestIPValidation"] eb01006c_f7b1_2a80_9433_1e2c4b57a317 -->|defined in| 5d0af313_84be_a251_2294_d136a0904196 style eb01006c_f7b1_2a80_9433_1e2c4b57a317 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 73–77
def test_is_localhost_ips(self) -> None:
"""Test localhost IP detection."""
assert is_localhost("example.com", "127.0.0.1") is True
assert is_localhost("example.com", "::1") is True
assert is_localhost("example.com", "0.0.0.0") is True
Domain
Subdomains
Source
Frequently Asked Questions
What does test_is_localhost_ips() do?
test_is_localhost_ips() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_is_localhost_ips() defined?
test_is_localhost_ips() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 73.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free