add missed test for invalid types

This commit is contained in:
Teemu Rytilahti 2018-10-18 20:16:40 +02:00
parent ab3993d63d
commit 55fca7ed44

View File

@ -362,3 +362,9 @@ class TestSmartPlugHS220(TestSmartPlugHS105):
with self.assertRaises(ValueError):
self.plug.brightness = -1
with self.assertRaises(ValueError):
self.plug.brightness = "foo"
with self.assertRaises(ValueError):
self.plug.brightness = 11.1