test_unsafe_url_safe_with_allow_private() — langchain Function Reference
Architecture documentation for the test_unsafe_url_safe_with_allow_private() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f42173c6_c481_1c7c_c00c_340cc1b6d455["test_unsafe_url_safe_with_allow_private()"] 886e7128_47aa_f2cd_0c79_bd8c13e47c94["TestIsSafeUrl"] f42173c6_c481_1c7c_c00c_340cc1b6d455 -->|defined in| 886e7128_47aa_f2cd_0c79_bd8c13e47c94 style f42173c6_c481_1c7c_c00c_340cc1b6d455 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 201–204
def test_unsafe_url_safe_with_allow_private(self) -> None:
"""Test that private URLs are safe with allow_private=True."""
assert is_safe_url("http://localhost:8080", allow_private=True) is True
assert is_safe_url("http://127.0.0.1:8080", allow_private=True) is True
Domain
Subdomains
Source
Frequently Asked Questions
What does test_unsafe_url_safe_with_allow_private() do?
test_unsafe_url_safe_with_allow_private() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_unsafe_url_safe_with_allow_private() defined?
test_unsafe_url_safe_with_allow_private() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 201.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free