def test_lights(self): result = Group.fromDict(self.input) self.assertEquals(["1", "2"], result.lights)
def test_action(self): result = Group.fromDict(self.input) self.assertEquals(100, result.action.bri)
def test_basic(self): result = Group.fromDict(self.input) self.assertEquals('bedroom', result.name)