19
19
import time
20
20
21
21
import chip .clusters as Clusters
22
- from mobly import asserts
23
22
from chip import ChipDeviceCtrl
24
- from chip .interaction_model import Status
25
23
from chip .ChipDeviceCtrl import CommissioningParameters
24
+ from chip .interaction_model import Status
26
25
from matter_testing_support import MatterBaseTest , async_test_body , default_matter_test_main
26
+ from mobly import asserts
27
27
28
28
29
29
class TC_ACE_1_5 (MatterBaseTest ):
@@ -100,7 +100,8 @@ async def test_TC_ACE_1_5(self):
100
100
self .print_step (4 , "TH2 reads its fabric index from the Operational Credentials cluster CurrentFabricIndex attribute" )
101
101
th2FabricIndex = await self .read_currentfabricindex_expected_success (self .th2 )
102
102
103
- self .print_step (5 , "TH1 writes DUT Endpoint 0 AccessControl cluster ACL attribute, value is list of AccessControlEntryStruct containing 2 elements" )
103
+ self .print_step (
104
+ 5 , "TH1 writes DUT Endpoint 0 ACL cluster ACL attribute, value is list of ACLEntryStruct containing 2 elements" )
104
105
admin_acl = Clusters .AccessControl .Structs .AccessControlEntryStruct (
105
106
privilege = Clusters .AccessControl .Enums .AccessControlEntryPrivilegeEnum .kAdminister ,
106
107
authMode = Clusters .AccessControl .Enums .AccessControlEntryAuthModeEnum .kCase ,
@@ -114,7 +115,8 @@ async def test_TC_ACE_1_5(self):
114
115
acl = [admin_acl , descriptor_view ]
115
116
await self .write_acl (acl , self .th1 )
116
117
117
- self .print_step (6 , "TH2 writes DUT Endpoint 0 AccessControl cluster ACL attribute, value is list of AccessControlEntryStruct containing 2 elements" )
118
+ self .print_step (
119
+ 6 , "TH2 writes DUT Endpoint 0 ACL cluster ACL attribute, value is list of ACLEntryStruct containing 2 elements" )
118
120
admin_acl = Clusters .AccessControl .Structs .AccessControlEntryStruct (
119
121
fabricIndex = th2FabricIndex ,
120
122
privilege = Clusters .AccessControl .Enums .AccessControlEntryPrivilegeEnum .kAdminister ,
@@ -152,7 +154,8 @@ async def test_TC_ACE_1_5(self):
152
154
acl = [full_acl ]
153
155
await self .write_acl (acl , self .th1 )
154
156
155
- self .print_step (12 , "TH1 removes the TH2 fabric by sending the RemoveFabric command to the DUT with the FabricIndex set to th2FabricIndex" )
157
+ self .print_step (
158
+ 12 , "TH1 removes the TH2 fabric by sending the RemoveFabric command to the DUT with the FabricIndex set to th2FabricIndex" )
156
159
removeFabricCmd = Clusters .OperationalCredentials .Commands .RemoveFabric (th2FabricIndex )
157
160
await self .th1 .SendCommand (nodeid = self .dut_node_id , endpoint = 0 , payload = removeFabricCmd )
158
161
0 commit comments