mirror of
https://github.com/home-assistant/core.git
synced 2025-05-22 14:57:14 +00:00
13 lines
291 B
Python
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
|