Example #1
0
    def test_databases(self):
        # Setup
        self.settings.key_list = ['max_number_of_group_members', 'max_number_of_contacts']

        # Test
        cmd_data = b'max_number_of_group_members' + US_BYTE + b'30'
        self.assertIsNone(ch_setting(cmd_data, *self.args))

        cmd_data = b'max_number_of_contacts' + US_BYTE + b'30'
        self.assertIsNone(ch_setting(cmd_data, *self.args))
Example #2
0
    def test_change_gateway_setting(self):
        # Setup
        self.settings.key_list = ['max_number_of_group_members', 'max_number_of_contacts']

        # Test
        cmd_data = b'serial_baudrate' + US_BYTE + b'115200'
        self.assertIsNone(ch_setting(cmd_data, *self.args))