updates
This commit is contained in:
20
tests/test_serial_scenario_unexpected.py
Normal file
20
tests/test_serial_scenario_unexpected.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import unittest
|
||||
|
||||
from h8536.serial_scenario_unexpected import parse_detected_frames
|
||||
|
||||
|
||||
class SerialScenarioUnexpectedTest(unittest.TestCase):
|
||||
def test_parse_detected_frames_relabels_iris_mblack_link_report(self):
|
||||
frames = parse_detected_frames(
|
||||
[
|
||||
"12:00:00.000 DETECT checksum_ok_unlabeled 00 00 13 40 00 09",
|
||||
"12:00:00.100 DETECT checksum_ok_unlabeled 02 00 13 00 00 4B",
|
||||
]
|
||||
)
|
||||
|
||||
self.assertEqual(frames[0].label, "known_iris_mblack_link_active_report_candidate")
|
||||
self.assertEqual(frames[1].label, "queued_iris_mblack_link_clear_report_candidate")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user