Skip to content

Commit 4c77971

Browse files
plauricrestyled-commits
authored andcommitted
ServiceArea - fix TC 1.2 and 1.3 bugs (project-chip#34891)
* initial commit * Restyled by autopep8 --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent b735d06 commit 4c77971

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/python_testing/TC_SEAR_1_2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ async def read_and_validate_supported_areas(self, step):
8989
if len(self.mapid_list) > 0:
9090
asserts.assert_is_not(a.mapID, NullValue,
9191
f"SupportedAreas entry with AreaID({a.areaID}) should not have null MapID")
92-
asserts.assert_is(a.mapID in self.mapid_list,
93-
f"SupportedAreas entry with AreaID({a.areaID}) has unknown MapID({a.mapID})")
92+
asserts.assert_true(a.mapID in self.mapid_list,
93+
f"SupportedAreas entry with AreaID({a.areaID}) has unknown MapID({a.mapID})")
9494
k = f"mapID:{a.mapID} areaDesc:{a.areaDesc}"
9595
asserts.assert_true(k not in areadesc_s,
9696
f"SupportedAreas must have unique MapID({a.mapID}) + AreaDesc({a.areaDesc}) values!")

src/python_testing/TC_SEAR_1_3.py

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ async def read_supported_areas(self, step):
5353
endpoint=self.endpoint, attribute=Clusters.ServiceArea.Attributes.SupportedAreas)
5454
logging.info("SupportedAreas: %s" % (supported_areas))
5555

56+
self.supported_areas = supported_areas
57+
5658
return [a.areaID for a in supported_areas]
5759

5860
async def read_selected_areas(self, step):

0 commit comments

Comments
 (0)