from applepy.checks.compliance import parse_kern_boottime_sec def test_parse_kern_boottime_sec_typical() -> None: text = "{ sec = 1700000000, usec = 0 }" assert parse_kern_boottime_sec(text) == 1700000000 def test_parse_kern_boottime_sec_no_match() -> None: assert parse_kern_boottime_sec("") is None assert parse_kern_boottime_sec("nonsense") is None