#!/usr/bin/env python3 # SPDX-License-Identifier: MIT from pathlib import Path import runpy import struct import unittest API = runpy.run_path(str(Path(__file__).with_name('msgbuf-state.py'))) class MessageBufferTests(unittest.TestCase): def test_ring_order_and_empty_space(self): obj, storage = 0xfffffe1000000000, 0xfffffe1000001000 values = {API['SLOT']: struct.pack('