示例#1
0
 def test_id_conversion(self):
     """Ensure endianess conversion succeeds"""
     from cchrc.sensors import onewire as ow
     self.assertEqual('28.F76AA8020000',
                      ow._normalize_owfs_id('BF000002A86AF728'))
示例#2
0
 def test_id_already_converted(self):
     """Ensure _normalize_owfs_id returns the strings given if already converted"""
     from cchrc.sensors import onewire as ow
     self.assertEqual(ow._normalize_owfs_id('28.F76AA8020000'), '28.F76AA8020000')