Files
opendbc-meb/opendbc/car/subaru/tests/test_subaru.py
Shane Smiskol c64b060c80 unittest-parallel: add back missing tests (#3345)
test missing stuff
2026-04-21 22:56:25 -07:00

13 lines
395 B
Python

import unittest
from opendbc.car.subaru.fingerprints import FW_VERSIONS
class TestSubaruFingerprint(unittest.TestCase):
def test_fw_version_format(self):
for platform, fws_per_ecu in FW_VERSIONS.items():
for (ecu, _, _), fws in fws_per_ecu.items():
fw_size = len(fws[0])
for fw in fws:
assert len(fw) == fw_size, f"{platform} {ecu}: {len(fw)} {fw_size}"