mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
add missed test for invalid types
This commit is contained in:
parent
ab3993d63d
commit
55fca7ed44
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user