Skip to content

Commit 9ca36b1

Browse files
committed
Updating TC_MOD_1_2 test module:
- Added check to make sure that all values for modes in SupportedModes are unique values
1 parent 2d4eec1 commit 9ca36b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/python_testing/TC_MOD_1_2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ async def test_TC_MOD_1_2(self):
6868

6969
mode_options = await self.read_single_attribute(dev_ctrl=self.th1, node_id=self.dut_node_id, endpoint=self.endpoint, attribute=attributes.SupportedModes)
7070
modes = [option.mode for option in mode_options]
71-
71+
asserts.assert_equal(len(modes), len(set(modes)), "Duplicate values were found in Supported Modes modes, only expected to contain unique values for each mode")
72+
7273
self.step(2)
7374
Current_Mode_ID = await self.read_single_attribute(dev_ctrl=self.th1, node_id=self.dut_node_id, endpoint=self.endpoint, attribute=attributes.CurrentMode)
7475
asserts.assert_in(Current_Mode_ID, modes, "Current Mode ID should have been in supported modes")

0 commit comments

Comments
 (0)