Skip to content

Commit

Permalink
add missed test for invalid types
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Oct 18, 2018
1 parent ab3993d commit 55fca7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyHS100/tests/test_pyHS100.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,9 @@ def test_dimmable(self):

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

0 comments on commit 55fca7e

Please sign in to comment.