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

Method test_play_raw

miio/tests/test_chuangmi_ir.py:64–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self.device.read(1000001)
63
64 def test_play_raw(self):
65 for args in test_data["test_raw_ok"]:
66 with self.subTest():
67 self.device._reset_state()
68 self.assertTrue(self.device.play_raw(*args["in"]))
69 self.assertSequenceEqual(
70 self.device.state["last_ir_played"], args["out"]
71 )
72
73 def test_pronto_to_raw(self):
74 for args in test_data["test_pronto_ok"]:

Callers

nothing calls this directly

Calls 2

play_rawMethod · 0.80
_reset_stateMethod · 0.45

Tested by

no test coverage detected