|
| 1 | +# |
| 2 | +# Copyright (c) 2023 Project CHIP Authors |
| 3 | +# All rights reserved. |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +import chip.clusters as Clusters |
| 19 | +from matter_testing_support import MatterBaseTest, async_test_body, default_matter_test_main |
| 20 | +from mobly import asserts |
| 21 | + |
| 22 | + |
| 23 | +class TC_TMP_4_1(MatterBaseTest): |
| 24 | + |
| 25 | + def pics_TC_TMP_4_1(self) -> list[str]: |
| 26 | + return ["TMP.C"] |
| 27 | + |
| 28 | + @async_test_body |
| 29 | + async def test_TC_TMP_4_1(self): |
| 30 | + self.print_step( |
| 31 | + 1, "DUT retries information from the TMP client using any viable mechanism (read / subscribe / wildcard subscription)") |
| 32 | + input("Press Enter when done.\n") |
| 33 | + |
| 34 | + self.print_step( |
| 35 | + 2, "Please press yes is you TOTALLy promise you're going to do SOMETHING with the data") |
| 36 | + while True: |
| 37 | + answer = input("I promise to do anything with this data (y/n)") |
| 38 | + if answer in ["y", "n", "Y", "N"]: |
| 39 | + break |
| 40 | + print("please press either y or n") |
| 41 | + |
| 42 | + asserts.assert_equal(answer.lower(), "y", |
| 43 | + "You need to do things with the data") |
| 44 | + |
| 45 | + |
| 46 | +if __name__ == "__main__": |
| 47 | + default_matter_test_main() |
0 commit comments