def test_deserialize(): frame = t.EmberApsFrame() frame.clusterId = 2 tsn, command_id, is_reply, args = zdo.deserialize(frame, b'\x01\x02\x03xx') assert tsn == 1 assert is_reply is False assert args == [0x0302]
def test_deserialize_unknown(): frame = t.EmberApsFrame() frame.clusterId = 0x0100 tsn, command_id, is_reply, args = zdo.deserialize(frame, b'\x01') assert tsn == 1 assert is_reply is False
def test_deserialize_unknown(): tsn, command_id, is_reply, args = zdo.deserialize(0x0100, b'\x01') assert tsn == 1 assert is_reply is False
def test_deserialize(): tsn, command_id, is_reply, args = zdo.deserialize(2, b'\x01\x02\x03xx') assert tsn == 1 assert is_reply is False assert args == [0x0302]