コード例 #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')
コード例 #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')
コード例 #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')