diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-02-14 09:51:23 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-02-14 09:51:23 +0100 |
commit | 2cc46a9411f5545128cca800eb657dd6cb338f4e (patch) | |
tree | 6364ee6ed3fbd5462b8413136dfdbdd1129f9b01 /bin | |
parent | 7ed42ca64831018aa7ea379651225d66412e62f0 (diff) |
update tests for get_param_lut fallback parameter
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/test.py | 4 |
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 = [ |