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

Method test_off

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

Source from the content-addressed store, hash-verified

58 assert self.is_on() is True
59
60 def test_off(self):
61 self.device.on() # ensure on
62 assert self.is_on() is True
63
64 self.device.off()
65 assert self.is_on() is False
66
67 def test_status(self):
68 self.device._reset_state()

Callers

nothing calls this directly

Calls 3

is_onMethod · 0.95
onMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected