Initial commit
This commit is contained in:
11
tests/test_compliance_boottime.py
Normal file
11
tests/test_compliance_boottime.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user