diff py/test.py @ 273:74c3ae4e3307

syntax fixes, doesn't make sense yet for asyncio
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Nov 2015 22:26:00 +0800
parents 185621f47040
children
line wrap: on
line diff
--- a/py/test.py	Wed Nov 11 21:58:38 2015 +0800
+++ b/py/test.py	Tue Nov 17 22:26:00 2015 +0800
@@ -1,4 +1,3 @@
-#!/usr/bin/env python2.7
 import io
 
 import unittest
@@ -7,7 +6,7 @@
 
 class TestSensors(unittest.TestCase):
     def setUp(self):
-        self.sensors = sensor_ds18b20.DS18B20s(None)
+        self.sensors = sensor_ds18b20.SensorDS18B20(None)
 
     def test_sensors_regex(self):
         f1 = """6e 01 4b 46 7f ff 02 10 71 : crc=71 YES
@@ -66,9 +65,7 @@
         jsbuf = io.StringIO()
 
         self.params.overshoot_delay = 123
-        self.params.save(f=jsbuf)
-
-        s = jsbuf.getvalue()
+        s = self.params.save_string()
         self.assertTrue('"overshoot_delay": 123' in s, msg=s)
             
 unittest.main()