Skip to content

Commit

Permalink
Fixed check in step 5 of TC-SEAR-1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hicklin committed Aug 27, 2024
1 parent d185778 commit 652ebb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python_testing/TC_SEAR_1_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ async def read_and_validate_current_area(self, step):
endpoint=self.endpoint, attribute=Clusters.ServiceArea.Attributes.CurrentArea)
logging.info(f"CurrentArea {current_area}")

asserts.assert_true((len(self.selareaid_list) == 0 and current_area is NullValue)
or
current_area in self.selareaid_list,
f"CurrentArea {current_area} is invalid. SelectedAreas is {self.selareaid_list}.")
if current_area is not NullValue:
asserts.assert_true(current_area in self.areaid_list,
f"CurrentArea {current_area} is not in SupportedAreas: {self.areaid_list}.")

# save so other methods can use this if needed
self.current_area = current_area

Expand Down

0 comments on commit 652ebb0

Please sign in to comment.