Files
supervisor/tests/host/test_supported_features.py
Mike Degatano 99bc201688 Listen for dbus property changes (#3872)
* Listen for dbus property changes

* Avoid remaking dbus proxy objects

* proper snake case for pylint

* some cleanup and more tests
2022-09-17 09:55:41 +02:00

15 lines
397 B
Python

"""Test supported features."""
# pylint: disable=protected-access
def test_supported_features(coresys, dbus_is_connected):
"""Test host features."""
assert "network" in coresys.host.features
coresys._dbus.network.is_connected = False
assert "network" in coresys.host.features
coresys.host.supported_features.cache_clear()
assert "network" not in coresys.host.features