From 55a5c02e9d83d2454c3b6f764136c992af1086f0 Mon Sep 17 00:00:00 2001 From: chendejin Date: Thu, 18 Jul 2024 11:03:20 +0800 Subject: [PATCH] modified step description --- src/python_testing/TC_CNET_1_4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python_testing/TC_CNET_1_4.py b/src/python_testing/TC_CNET_1_4.py index 9806b91cc02478..0667dc3ef3c88c 100644 --- a/src/python_testing/TC_CNET_1_4.py +++ b/src/python_testing/TC_CNET_1_4.py @@ -41,7 +41,7 @@ class TC_CNET_1_4(MatterBaseTest): def steps_TC_CNET_1_4(self): return [TestStep(1, "TH is commissioned", is_commissioning=True), TestStep(2, 'TH performs a wildcard read of Network Commissioning clusters across all endpoints, and save the number of Network Commissioning clusters as `NumNetworkCommissioning` for future use. If `NumNetworkCommissioning` is 0, skip the remaining steps in this test case'), - TestStep(3, 'TH checks whether endpoint 0 is contained in the response of the previous response to determine whether there is a Network Commissioning cluster on endpoint 0'), + TestStep(3, 'TH checks whether endpoint 0 is contained in the previous response to determine whether there is a Network Commissioning cluster on endpoint 0'), TestStep(4, 'TH reads from the DUT the Descriptor Cluster DeviceTypeList attribute on each endpoint (except for Endpoint 0) that hosts a Network Commissioning cluster, verify that the Secondary Network Interface device type id (0x0019) is listed in the DeviceTypeList'), TestStep(5, 'TH reads from the DUT the General Commissioning Cluster SupportsConcurrentConnection attribute if NumNetworkCommissioning is greater than 1, verify that it is true')] @@ -88,7 +88,7 @@ async def test_TC_CNET_1_4(self): continue device_type_list = await self.read_single_attribute_check_success(cluster=Clusters.Descriptor, attribute=Clusters.Descriptor.Attributes.DeviceTypeList, endpoint=endpoint) - required_device_types = { kSecondaryNetworkInterfaceDeviceTypeId } + required_device_types = {kSecondaryNetworkInterfaceDeviceTypeId} found_device_types = {device.deviceType for device in device_type_list} asserts.assert_true(required_device_types.intersection(found_device_types), "Network Commissioning Cluster is not on Root Node or Secondary Network Interface")