def setUp(self):
     self.option_bytes = bytes.fromhex('00070001ff')
     self.option_object = PreferenceOption(preference=255)
     self.parse_option()
Exemple #2
0
    def __init__(self, preference: int):
        # This option remains constant, so create a singleton that can be re-used
        option = PreferenceOption(preference=preference)
        option.validate()

        super().__init__(option, always_send=True)