def test_unlock_cmd_export_parse(): cmd = CmdUnlock() data = cmd.export() assert len(data) == 8 assert cmd == CmdUnlock.parse(data)
def test_unlock_parse_others(): cmd = CmdUnlock(engine=EnumEngine.SRTC) assert "CmdUnlock" in str(cmd) data = cmd.export() cmd2 = CmdUnlock.parse(data) assert cmd == cmd2