From d8a0ed2bc5942acb9d95370f4d5965ba1179fd5c Mon Sep 17 00:00:00 2001 From: KG Date: Fri, 29 Dec 2023 23:52:02 -0500 Subject: [PATCH] Add some more flash tests --- tests/tivars.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tivars.py b/tests/tivars.py index b145e0d..2acbc3c 100644 --- a/tests/tivars.py +++ b/tests/tivars.py @@ -589,10 +589,15 @@ def test_app(self): def test_os(self): test_os = TIFlashHeader.open("tests/data/var/TI-84_Plus_CE-Python-OS-5.8.0.0022.8eu") + self.assertEqual(test_os.magic, "**TIFL**") + self.assertEqual(test_os.binary_flag, 0x00) + self.assertEqual(test_os.object_type, 0x00) + self.assertEqual(test_os.product_id, 0x13) self.assertEqual(type(test_os), TIOperatingSystem) def test_license(self): test_license = TILicense.open("tests/data/var/ti89_2.01_10-13-1999.89u") + self.assertEqual(test_license.date, (12, 10, 1999)) self.assertEqual(test_license.devices, [(0x74, 0x3E), (0x73, 0x3E), (0x98, 0x3E), (0x88, 0x3E)]) self.assertEqual(test_license.license.split("\r\n")[2], "Texas Instruments License Agreement")