"""Tests for the shared MSR reader utility.""" import struct from s_tui.sources.msr import msr_available, read_msr class TestReadMsr: def test_reads_via_dev_cpu(self, mocker): """read_msr opens /dev/cpu/{cpu}/msr and seeks to register.""" value = 0x42 data = struct.pack("