Beispiel #1
0
def test_nop_cmd_invalid_parse():
    cmd = CmdLoad(address=100, data=b"\x00" * 100)
    data = cmd.export()
    with pytest.raises(SPSDKError, match="Incorrect header tag"):
        CmdNop.parse(data)
Beispiel #2
0
def test_invalid_crc():
    cmd = CmdNop()
    with pytest.raises(SPSDKError):
        cmd.parse(bytes(20))