diff py/test.py @ 148:b32e5a11a4cb

few updates, seems to run
author Matt Johnston <matt@ucc.asn.au>
date Sat, 15 Dec 2012 23:49:08 +0800
parents 6517ddee3187
children 185621f47040
line wrap: on
line diff
--- a/py/test.py	Sun Dec 09 20:07:15 2012 +0800
+++ b/py/test.py	Sat Dec 15 23:49:08 2012 +0800
@@ -13,19 +13,19 @@
         f1 = """6e 01 4b 46 7f ff 02 10 71 : crc=71 YES
 6e 01 4b 46 7f ff 02 10 71 t=22875
 """
-        val = self.sensors.do_sensor_name('blank', f1)
+        val = self.sensors.do_sensor('blank', f1)
         self.assertEqual(val, 22.875)
 
         f2 = """6e 01 4b 46 7f ff 02 10 71 : crc=71 NO
 6e 01 4b 46 7f ff 02 10 71 t=22875
 """
-        val = self.sensors.do_sensor_name('blank', f2)
+        val = self.sensors.do_sensor('blank', f2)
         self.assertEqual(val, None)
 
         f3 = """6e 01 4b 46 7f ff 02 10 71 : crc=71 YES
 6e 01 4b 46 7f ff 02 10 71 t=-1
 """
-        val = self.sensors.do_sensor_name('blank', f3)
+        val = self.sensors.do_sensor('blank', f3)
         self.assertEqual(val, -0.001)
 
 class TestParams(unittest.TestCase):