Example #1
0
def test_deserialize_unknown():
    tsn, command_id, is_reply, args = zdo.deserialize(0x0100, b'\x01')
    assert tsn == 1
    assert is_reply is False
Example #2
0
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]