              self.assertEqual(1, len(get_platform_codes([f])), f"Unable to parse FW: {f}")
  
    def test_platform_codes_spot_check(self):
      # Asserts basic platform code parsing behavior for a few cases
      codes = get_platform_codes([b'\xf1\x00DH LKAS 1.1 -150210'])
      self.assertEqual(codes, {b"DH-1502"})
  
      # Some cameras and all radars do not have dates
      codes = get_platform_codes([b'\xf1\x00AEhe SCC H-CUP      1.01 1.01 96400-G2000         '])
      self.assertEqual(codes, {b"AEhe"})
 
</s> remove   def test_platform_codes_all_parsable(self):
    # Assert every supported ECU FW version returns one platform code
    for fw_by_addr in FW_VERSIONS.values():
      for addr, fws in fw_by_addr.items():
        if addr[0] in PLATFORM_CODE_ECUS:
          for f in fws:
            self.assertEqual(1, len(get_platform_codes([f])), f"Unable to parse FW: {f}")
 </s> add           # Hyundai places the ECU part number in their FW versions, assert all parsable
          # Some examples of valid formats: b"56310-L0010", b"56310L0010", b"56310/M6300"
          for fw in fws:
            match = PART_NUMBER_FW_PATTERN.search(fw)
            self.assertIsNotNone(match, fw) </s> remove     codes = get_platform_codes([b'\xf1\x00AEhe SCC H-CUP      1.01 1.01 96400-G2000         '])
 </s> add     codes = get_platform_codes([b"\xf1\x00AEhe SCC H-CUP      1.01 1.01 96400-G2000         "]) </s> remove     codes = get_platform_codes([b'\xf1\x00CV1_ RDR -----      1.00 1.01 99110-CV000         '])
 </s> add     codes = get_platform_codes([b"\xf1\x00CV1_ RDR -----      1.00 1.01 99110-CV000         "]) </s> remove             codes |= get_platform_codes([fw])
 </s> add             result = get_platform_codes([fw])
            self.assertEqual(1, len(result), f"Unable to parse FW: {fw}")
            codes |= result

          # Some newer platforms have date codes in a different format we don't yet parse,
          # for now assert we can parse all FW or none
          self.assertEqual(len({b"-" in code for code in codes}), 1,
                           "Not all FW dates are parsable") </s> remove       b'\xf1\x00DH LKAS 1.1 -150210',
      b'\xf1\x00AEhe SCC H-CUP      1.01 1.01 96400-G2000         ',
      b'\xf1\x00CV1_ RDR -----      1.00 1.01 99110-CV000         ',
 </s> add       b"\xf1\x00DH LKAS 1.1 -150210",
      b"\xf1\x00AEhe SCC H-CUP      1.01 1.01 96400-G2000         ",
      b"\xf1\x00CV1_ RDR -----      1.00 1.01 99110-CV000         ",
    codes = get_platform_codes([b"\xf1\x00DH LKAS 1.1 -150210"])
              self.assertEqual(1, len(get_platform_codes([f])), f"Unable to parse FW: {f}")
  
    def test_platform_codes_spot_check(self):
      # Asserts basic platform code parsing behavior for a few cases
    codes = get_platform_codes([b"\xf1\x00DH LKAS 1.1 -150210"])
      self.assertEqual(codes, {b"DH-1502"})
  
      # Some cameras and all radars do not have dates
      codes = get_platform_codes([b'\xf1\x00AEhe SCC H-CUP      1.01 1.01 96400-G2000         '])
      self.assertEqual(codes, {b"AEhe"})
keep keep keep keep replace keep keep keep keep keep
 Hyundai FPv2 unit tests: clean up (#28542)

* be consistent with quotes

* combine tests

* cmt 
selfdrive/car/hyundai/tests/test_hyundai.py