Update tests for RGB color support
parent
047cff6596
commit
9d4aa7e519
|
@ -152,9 +152,13 @@ class TestLight(unittest.TestCase):
|
|||
data)
|
||||
|
||||
method, data = dev2.last_call('turn_on')
|
||||
self.assertEqual(
|
||||
{light.ATTR_XY_COLOR: color_util.color_RGB_to_xy(255, 255, 255)},
|
||||
data)
|
||||
self.assertEquals(
|
||||
data[light.ATTR_XY_COLOR],
|
||||
color_util.color_RGB_to_xy(255, 255, 255))
|
||||
|
||||
self.assertEquals(
|
||||
data[light.ATTR_RGB_COLOR],
|
||||
[255, 255, 255])
|
||||
|
||||
method, data = dev3.last_call('turn_on')
|
||||
self.assertEqual({light.ATTR_XY_COLOR: [.4, .6]}, data)
|
||||
|
|
Loading…
Reference in New Issue