# SPDX-License-Identifier: MIT from pathlib import Path import copy import runpy import struct import unittest collect=runpy.run_path(str(Path(__file__).with_name('table-density.py')))['collect'] BASE=0xae1340000 class DensityTests(unittest.TestCase): def setUp(self): self.pages={BASE:bytearray(4096),BASE+4096:bytearray(4096)} for index,value in [(0,3),(7,2),(8,1),(511,2)]:struct.pack_into('