MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / test_url_detection

Method test_url_detection

tests/test_core.py:15–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14 def test_url_detection(self):
15 t = Target.from_string("https://example.com/path")
16 assert t.target_type == "url"
17 assert t.value == "https://example.com/path"
18
19 def test_ip_detection(self):
20 t = Target.from_string("192.168.1.1")
21 assert t.target_type == "ip"

Callers

nothing calls this directly

Calls 1

from_stringMethod · 0.80

Tested by

no test coverage detected