From 65af1b34fa9003f694d938d1aa28b8186dba7f99 Mon Sep 17 00:00:00 2001 From: James Harrow Date: Wed, 28 Aug 2024 14:06:41 +0100 Subject: [PATCH] TC_DEM_2.6/2.7/2.8 - slight change to call to name args in validate_feature_map() call --- src/python_testing/TC_DEM_2_6.py | 6 +++--- src/python_testing/TC_DEM_2_7.py | 6 +++--- src/python_testing/TC_DEM_2_8.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/python_testing/TC_DEM_2_6.py b/src/python_testing/TC_DEM_2_6.py index 9e0324b8318f29..c05a80c6c3909a 100644 --- a/src/python_testing/TC_DEM_2_6.py +++ b/src/python_testing/TC_DEM_2_6.py @@ -142,9 +142,9 @@ async def test_TC_DEM_2_6(self): # Commission DUT - already done self.step("2") - await self.validate_feature_map([Clusters.DeviceEnergyManagement.Bitmaps.Feature.kForecastAdjustment, - Clusters.DeviceEnergyManagement.Bitmaps.Feature.kStateForecastReporting], - [Clusters.DeviceEnergyManagement.Bitmaps.Feature.kPowerForecastReporting]) + await self.validate_feature_map(must_have_features=[Clusters.DeviceEnergyManagement.Bitmaps.Feature.kForecastAdjustment, + Clusters.DeviceEnergyManagement.Bitmaps.Feature.kStateForecastReporting], + must_not_have_features=[Clusters.DeviceEnergyManagement.Bitmaps.Feature.kPowerForecastReporting]) self.step("3") await self.check_test_event_triggers_enabled() diff --git a/src/python_testing/TC_DEM_2_7.py b/src/python_testing/TC_DEM_2_7.py index 3a1ce8959a2280..b45643868a6e71 100644 --- a/src/python_testing/TC_DEM_2_7.py +++ b/src/python_testing/TC_DEM_2_7.py @@ -150,9 +150,9 @@ async def test_TC_DEM_2_7(self): # Commission DUT - already done self.step("2") - await self.validate_feature_map([Clusters.DeviceEnergyManagement.Bitmaps.Feature.kConstraintBasedAdjustment, - Clusters.DeviceEnergyManagement.Bitmaps.Feature.kPowerForecastReporting], - [Clusters.DeviceEnergyManagement.Bitmaps.Feature.kStateForecastReporting]) + await self.validate_feature_map(must_have_features=[Clusters.DeviceEnergyManagement.Bitmaps.Feature.kConstraintBasedAdjustment, + Clusters.DeviceEnergyManagement.Bitmaps.Feature.kPowerForecastReporting], + must_not_have_features=[Clusters.DeviceEnergyManagement.Bitmaps.Feature.kStateForecastReporting]) self.step("3") await self.check_test_event_triggers_enabled() diff --git a/src/python_testing/TC_DEM_2_8.py b/src/python_testing/TC_DEM_2_8.py index cc79bb068f8e62..1b1a2a31537098 100644 --- a/src/python_testing/TC_DEM_2_8.py +++ b/src/python_testing/TC_DEM_2_8.py @@ -142,9 +142,9 @@ async def test_TC_DEM_2_8(self): # Commission DUT - already done self.step("2") - await self.validate_feature_map([Clusters.DeviceEnergyManagement.Bitmaps.Feature.kConstraintBasedAdjustment, - Clusters.DeviceEnergyManagement.Bitmaps.Feature.kStateForecastReporting], - [Clusters.DeviceEnergyManagement.Bitmaps.Feature.kPowerForecastReporting]) + await self.validate_feature_map(must_have_features=[Clusters.DeviceEnergyManagement.Bitmaps.Feature.kConstraintBasedAdjustment, + Clusters.DeviceEnergyManagement.Bitmaps.Feature.kStateForecastReporting], + must_not_have_features=[Clusters.DeviceEnergyManagement.Bitmaps.Feature.kPowerForecastReporting]) self.step("3") await self.check_test_event_triggers_enabled()