Exemplo n.º 1
0
 def test_003_normalize_device_id(self):
     """ Test normalizing the device id to a string.
     """
     normalized = utils.normalize_device_id(0x12)
     self.assertEqual(normalized, '0012')
Exemplo n.º 2
0
 def test_005_normalize_device_id(self):
     """ Test normalizing the device id to a string.
     """
     normalized = utils.normalize_device_id('666')
     self.assertEqual(normalized, '666')
Exemplo n.º 3
0
 def test_002_normalize_device_id(self):
     """ Test normalizing the device id to a string.
     """
     normalized = utils.normalize_device_id(0xffff)
     self.assertEqual(normalized, 'ffff')