all cases

This commit is contained in:
Maxime Desroches 2024-09-30 21:45:21 -07:00
parent b4ee17e6b6
commit 13e34430ec
1 changed files with 10 additions and 0 deletions

View File

@ -455,9 +455,19 @@ class TestHondaBoschSafety(HondaPcmEnableBase, TestHondaBoschSafetyBase):
msg = self._bosh_supplemental_cmd_msg() msg = self._bosh_supplemental_cmd_msg()
self.assertTrue(self._tx(msg)) self.assertTrue(self._tx(msg))
msg = self._bosh_supplemental_cmd_msg()
msg[0].data[0] = 42; msg[0].data[0] = 42;
self.assertFalse(self._tx(msg)) self.assertFalse(self._tx(msg))
msg = self._bosh_supplemental_cmd_msg()
msg[0].data[4] = 42;
self.assertFalse(self._tx(msg))
msg = self._bosh_supplemental_cmd_msg()
msg[0].data[4] = 0;
msg[0].data[7] = 42;
self.assertTrue(self._tx(msg))
class TestHondaBoschAltBrakeSafety(HondaPcmEnableBase, TestHondaBoschAltBrakeSafetyBase): class TestHondaBoschAltBrakeSafety(HondaPcmEnableBase, TestHondaBoschAltBrakeSafetyBase):
""" """