MCPcopy
hub / github.com/rytilahti/python-miio / test_status

Method test_status

miio/tests/test_waterpurifier.py:67–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 assert self.is_on() is False
66
67 def test_status(self):
68 self.device._reset_state()
69
70 assert repr(self.state()) == repr(WaterPurifierStatus(self.device.start_state))
71
72 assert self.is_on() is True

Callers

nothing calls this directly

Calls 4

stateMethod · 0.95
is_onMethod · 0.95
WaterPurifierStatusClass · 0.90
_reset_stateMethod · 0.45

Tested by

no test coverage detected