summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/test.py b/bin/test.py
index c05ed51..0d0c116 100755
--- a/bin/test.py
+++ b/bin/test.py
@@ -87,13 +87,15 @@ class TestStaticModel(unittest.TestCase):
self.assertAlmostEqual(static_model('off', 'duration'), 9130, places=0)
self.assertAlmostEqual(static_model('setBrightness', 'duration'), 9130, places=0)
- param_lut_model = model.get_param_lut(fallback=True)
+ param_lut_model = model.get_param_lut()
self.assertAlmostEqual(param_lut_model('OFF', 'power', param=[None, None]), 7124, places=0)
with self.assertRaises(KeyError):
param_lut_model('ON', 'power', param=[None, None])
param_lut_model('ON', 'power', param=['a'])
param_lut_model('ON', 'power', param=[0])
self.assertTrue(param_lut_model('ON', 'power', param=[0, 0]))
+ param_lut_model = model.get_param_lut(fallback = True)
+ self.assertAlmostEqual(param_lut_model('ON', 'power', param=[None, None]), 17866, places=0)
def test_model_multifile_lm75x(self):
testfiles = [