python-kasa/tests/iot/modules/test_cloud.py

14 lines
323 B
Python
Raw Normal View History

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)