1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-29 01:17:07 +00:00
2020-04-25 18:02:41 +02:00

13 lines
291 B
Python

"""The tests for Lock."""
from homeassistant.components import lock
def test_deprecated_base_class(caplog):
"""Test deprecated base class."""
class CustomLock(lock.LockDevice):
pass
CustomLock()
assert "LockDevice is deprecated, modify CustomLock" in caplog.text