def test__find_characteristic_in_pairing_data__found(self): pairing_data = self._create_pairing_data() pairing = BlePairing(pairing_data) result = pairing._find_characteristic_in_pairing_data(1, 2) self.assertIsNotNone(result) self.assertIn('format', result) self.assertEqual('bool', result['format'])
def test__find_characteristic_in_pairing_data__not_found(self): pairing_data = self._create_pairing_data() pairing = BlePairing(pairing_data) result = pairing._find_characteristic_in_pairing_data(1, 1) self.assertIsNone(result)