mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 19:53:34 +00:00
14 lines
323 B
Python
14 lines
323 B
Python
|
from kasa import Device, Module
|
||
|
|
||
|
from ...device_fixtures import device_iot
|
||
|
|
||
|
|
||
|
@device_iot
|
||
|
def test_cloud(dev: Device):
|
||
|
cloud = dev.modules.get(Module.IotCloud)
|
||
|
assert cloud
|
||
|
info = cloud.info
|
||
|
assert info
|
||
|
assert isinstance(info.provisioned, int)
|
||
|
assert cloud.is_connected == bool(info.cloud_connected)
|