From 8dd6c7d4b1f3e560d56a783668fbb2b6da09d9d7 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 5 Dec 2023 21:24:28 -0600 Subject: [PATCH] Toyota: LTA unit test (#30613) LTA unit test old-commit-hash: 67d6186bbd5b19269162453a6028cabd6a2fabfc --- selfdrive/car/toyota/tests/test_toyota.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/car/toyota/tests/test_toyota.py b/selfdrive/car/toyota/tests/test_toyota.py index 2a82ca5ec0..eae59a861f 100755 --- a/selfdrive/car/toyota/tests/test_toyota.py +++ b/selfdrive/car/toyota/tests/test_toyota.py @@ -17,6 +17,10 @@ class TestToyotaInterfaces(unittest.TestCase): self.assertTrue(len(ANGLE_CONTROL_CAR - TSS2_CAR) == 0) self.assertTrue(len(RADAR_ACC_CAR - TSS2_CAR) == 0) + def test_lta_platforms(self): + # At this time, only RAV4 2023 is expected to use LTA/angle control + self.assertEqual(ANGLE_CONTROL_CAR, {CAR.RAV4_TSS2_2023}) + def test_tss2_dbc(self): # We make some assumptions about TSS2 platforms, # like looking up certain signals only in this DBC