mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 06:17:08 +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):
|
with self.assertRaises(ValueError):
|
||||||
self.plug.brightness = -1
|
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