Ejemplo n.º 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))
Ejemplo n.º 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))