def test_byte_to_handle(self): self.assertEqual('0x0B', GatttoolBackend.byte_to_handle(0x0B)) self.assertEqual('0xAF', GatttoolBackend.byte_to_handle(0xAF)) self.assertEqual('0xAABB', GatttoolBackend.byte_to_handle(0xAABB))
def test_byte_to_handle(self): """Test conversion of handles.""" self.assertEqual('0x0B', GatttoolBackend.byte_to_handle(0x0B)) self.assertEqual('0xAF', GatttoolBackend.byte_to_handle(0xAF)) self.assertEqual('0xAABB', GatttoolBackend.byte_to_handle(0xAABB))