mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-05-04 01:48:39 +00:00
17 lines
609 B
Python
17 lines
609 B
Python
"""Test dbus utility."""
|
|
from dbus_fast.aio.message_bus import MessageBus
|
|
import pytest
|
|
|
|
from supervisor.dbus.const import DBUS_OBJECT_BASE
|
|
from supervisor.exceptions import DBusInterfaceMethodError
|
|
from supervisor.utils.dbus import DBus
|
|
|
|
|
|
async def test_missing_properties_interface(dbus_bus: MessageBus, dbus: list[str]):
|
|
"""Test introspection missing properties interface."""
|
|
service = await DBus.connect(
|
|
dbus_bus, "test.no.properties.interface", DBUS_OBJECT_BASE
|
|
)
|
|
with pytest.raises(DBusInterfaceMethodError):
|
|
await service.get_properties("test.no.properties.interface")
|