mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-11 18:08:02 +00:00
Fix __repr__ function of SmartDevice (#178)
This commit is contained in:

committed by
Teemu R

parent
2c79febae4
commit
c9280c70c0
@@ -654,3 +654,10 @@ def test_cache_invalidates(dev):
|
||||
dev.get_sysinfo()
|
||||
assert query_mock.call_count == 2
|
||||
# assert query_mock.called_once()
|
||||
|
||||
|
||||
def test_representation(dev):
|
||||
import re
|
||||
pattern = re.compile("<.* model .* at .* (.*), is_on: .* - dev specific: .*>")
|
||||
assert pattern.match(str(dev))
|
||||
|
||||
|
Reference in New Issue
Block a user