Files
applepy/tests/test_compliance_boottime.py
Warezpeddler 3325436017 Initial commit
2026-04-25 23:09:31 +01:00

12 lines
372 B
Python

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