mirror of
https://github.com/home-assistant/supervisor
synced 2024-08-05 03:49:58 +02:00
23 lines
512 B
Python
23 lines
512 B
Python
"""Test VLC Telnet discovery."""
|
|
|
|
import pytest
|
|
import voluptuous as vol
|
|
|
|
from supervisor.discovery.validate import valid_discovery_config
|
|
|
|
|
|
def test_good_config():
|
|
"""Test good vlc telnet config."""
|
|
|
|
valid_discovery_config(
|
|
"vlc_telnet",
|
|
{"host": "test", "port": 3812, "password": "darksideofthemoon"},
|
|
)
|
|
|
|
|
|
def test_bad_config():
|
|
"""Test bad vlc telnet config."""
|
|
|
|
with pytest.raises(vol.Invalid):
|
|
valid_discovery_config("vlc_telnet", {"host": "test", "port": 8283})
|