mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-14 21:40:20 +00:00
* Sanitise event * No need to remove supervisor token * cleanup * Typo * Review comments * Move and test * Move and use hdr
10 lines
361 B
Python
10 lines
361 B
Python
"""Test supervisor.utils.sanitize_url."""
|
|
from supervisor.misc.filter import sanitize_url
|
|
|
|
|
|
def test_sanitize_url():
|
|
"""Test supervisor.utils.sanitize_url."""
|
|
assert sanitize_url("test") == "test"
|
|
assert sanitize_url("http://my.duckdns.org") == "http://example.com"
|
|
assert sanitize_url("http://my.duckdns.org/test") == "http://example.com/test"
|