diff --git a/src/python_testing/TC_CADMIN_1_22_24.py b/src/python_testing/TC_CADMIN_1_22_24.py index 9240652b3eeb86..2061e2369032ca 100644 --- a/src/python_testing/TC_CADMIN_1_22_24.py +++ b/src/python_testing/TC_CADMIN_1_22_24.py @@ -38,7 +38,7 @@ import chip.clusters as Clusters from chip.ChipDeviceCtrl import CommissioningParameters -from chip.exceptions import ChipStackError +from chip.exceptions import ChipStackError from chip.testing.matter_testing import MatterBaseTest, TestStep, async_test_body, default_matter_test_main from mobly import asserts @@ -95,7 +95,8 @@ async def test_TC_CADMIN_1_22(self): self.step(4) window_status = await self.get_window_status() if window_status != Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen: - asserts.assert_equal(window_status, Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen, "Commissioning window is expected to be closed, but was found to be open") + asserts.assert_equal(window_status, Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen, + "Commissioning window is expected to be closed, but was found to be open") self.step(5) try: @@ -153,7 +154,8 @@ async def test_TC_CADMIN_1_24(self): window_status = await self.get_window_status() if window_status != Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen: - asserts.assert_equal(window_status, Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen, "Commissioning window is expected to be closed, but was found to be open") + asserts.assert_equal(window_status, Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen, + "Commissioning window is expected to be closed, but was found to be open") self.step(5) try: @@ -172,5 +174,6 @@ async def test_TC_CADMIN_1_24(self): if window_status2 != Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen: asserts.assert_equal(await window_status, Clusters.AdministratorCommissioning.Enums.CommissioningWindowStatusEnum.kWindowNotOpen, "Commissioning window is expected to be closed, but was found to be open") + if __name__ == "__main__": default_matter_test_main()