Пример #1
0
 def test_bytes_to_string(self):
     """Test conversion of byte arrays."""
     self.assertEqual('0A0B',
                      GatttoolBackend.bytes_to_string(bytes([0x0A, 0x0B])))
     self.assertEqual(
         '0x0C0D', GatttoolBackend.bytes_to_string(bytes([0x0C, 0x0D]),
                                                   True))
Пример #2
0
 def test_bytes_to_string(self):
     self.assertEqual('0A0B',
                      GatttoolBackend.bytes_to_string(bytes([0x0A, 0x0B])))
     self.assertEqual(
         '0x0C0D', GatttoolBackend.bytes_to_string(bytes([0x0C, 0x0D]),
                                                   True))