"""Full-canvas integer rounding eligibility; this is not artwork approval.""" import hashlib import struct import tempfile import unittest from pathlib import Path from PIL import Image from hd_art_audit import integer_rounded_aspect, validate_hd_frame from hd_art_source import decode class FullCanvasRoundingAuditTest(unittest.TestCase): def setUp(self): temporary = tempfile.TemporaryDirectory() self.addCleanup(temporary.cleanup) self.root = Path(temporary.name) def case(self, logical=(8, 5), natural=(101, 63), transparent=True): width, height = logical payload = bytearray(struct.pack(" 2 else 0 length = max(1, width - 2) rows = range(1, height - 1) if height > 2 else range(1) for y in rows: payload.extend(struct.pack("