@@ -150,7 +150,7 @@ async def test_TC_TSTAT_4_2(self):
150
150
# Commission DUT - already done
151
151
152
152
self .step ("2" )
153
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " )):
153
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " )):
154
154
presets = await self .read_single_attribute_check_success (endpoint = endpoint , cluster = cluster , attribute = cluster .Attributes .Presets )
155
155
logger .info (f"Rx'd Presets: { presets } " )
156
156
asserts .assert_equal (presets , initial_presets , "Presets do not match initial value" )
@@ -161,7 +161,7 @@ async def test_TC_TSTAT_4_2(self):
161
161
asserts .assert_true (status_ok , "Presets write did not return InvalidInState as expected" )
162
162
163
163
self .step ("3" )
164
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
164
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
165
165
await self .send_edit_preset_request_command ()
166
166
167
167
# Write to the presets attribute after calling StartPresetsSchedulesEditRequest command
@@ -175,7 +175,7 @@ async def test_TC_TSTAT_4_2(self):
175
175
asserts .assert_equal (presets , initial_presets , "Presets were updated which is not expected" )
176
176
177
177
self .step ("4" )
178
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
178
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
179
179
180
180
# Send the StartPresetsSchedulesEditRequest command
181
181
await self .send_edit_preset_request_command ()
@@ -194,7 +194,7 @@ async def test_TC_TSTAT_4_2(self):
194
194
asserts .assert_equal (presets , new_presets_with_handle , "Presets were not updated which is not expected" )
195
195
196
196
self .step ("5" )
197
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
197
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
198
198
199
199
# Send the StartPresetsSchedulesEditRequest command
200
200
await self .send_edit_preset_request_command ()
@@ -210,7 +210,7 @@ async def test_TC_TSTAT_4_2(self):
210
210
await self .send_commit_preset_request_command (expected_status = Status .UnsupportedAccess )
211
211
212
212
self .step ("6" )
213
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C06.Rsp" ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
213
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C06.Rsp" ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
214
214
215
215
# Send the SetActivePresetRequest command
216
216
await self .send_set_active_preset_handle_request_command (value = b'\x03 ' )
@@ -234,7 +234,7 @@ async def test_TC_TSTAT_4_2(self):
234
234
await self .send_commit_preset_request_command (expected_status = Status .InvalidInState )
235
235
236
236
self .step ("7" )
237
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
237
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
238
238
239
239
# Send the StartPresetsSchedulesEditRequest command
240
240
await self .send_edit_preset_request_command ()
@@ -251,7 +251,7 @@ async def test_TC_TSTAT_4_2(self):
251
251
await self .send_commit_preset_request_command (expected_status = Status .UnsupportedAccess )
252
252
253
253
self .step ("8" )
254
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
254
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
255
255
256
256
# Send the StartPresetsSchedulesEditRequest command
257
257
await self .send_edit_preset_request_command ()
@@ -269,7 +269,7 @@ async def test_TC_TSTAT_4_2(self):
269
269
await self .send_commit_preset_request_command (expected_status = Status .ConstraintError )
270
270
271
271
self .step ("9" )
272
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
272
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
273
273
274
274
# Send the StartPresetsSchedulesEditRequest command
275
275
await self .send_edit_preset_request_command ()
@@ -287,7 +287,7 @@ async def test_TC_TSTAT_4_2(self):
287
287
await self .send_commit_preset_request_command (expected_status = Status .NotFound )
288
288
289
289
self .step ("10" )
290
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
290
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
291
291
292
292
# Send the StartPresetsSchedulesEditRequest command
293
293
await self .send_edit_preset_request_command ()
@@ -304,7 +304,7 @@ async def test_TC_TSTAT_4_2(self):
304
304
await self .send_commit_preset_request_command (expected_status = Status .UnsupportedAccess )
305
305
306
306
self .step ("11" )
307
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
307
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
308
308
309
309
# Send the StartPresetsSchedulesEditRequest command
310
310
await self .send_edit_preset_request_command ()
@@ -321,7 +321,7 @@ async def test_TC_TSTAT_4_2(self):
321
321
await self .send_commit_preset_request_command (expected_status = Status .ConstraintError )
322
322
323
323
self .step ("12" )
324
- if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0048 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
324
+ if self .pics_guard (self .check_pics ("TSTAT.S.F08" ) and self .check_pics ("TSTAT.S.A0050 " ) and self .check_pics ("TSTAT.S.C07.Rsp" ) and self .check_pics ("TSTAT.S.C09.Rsp" )):
325
325
326
326
# Send the StartPresetsSchedulesEditRequest command
327
327
await self .send_edit_preset_request_command ()
@@ -341,7 +341,7 @@ async def test_TC_TSTAT_4_2(self):
341
341
# Send the CommitPresetsSchedulesRequest command and expect InvalidInState as the previous edit request was cancelled
342
342
await self .send_commit_preset_request_command (expected_status = Status .InvalidInState )
343
343
344
- # TODO: Add tests for the total number of Presets exceeds the NumberOfPresets supported. Also Add tests for adding presets with preset scenario not present in PresetTypes.
344
+ # TODO: Add tests for the total number of Presets exceeds the NumberOfPresets supported. Also Add tests for adding presets with preset scenario not present in PresetTypes.
345
345
346
346
347
347
if __name__ == "__main__" :
0 commit comments