'Test active scene.'

def test_activate_scene(self):

    self.assertTrue(setup_component(self.hass, scene.DOMAIN, {'scene': [{'name': 'test', 'entities': {self.light_1.entity_id: 'on', self.light_2.entity_id: {'state': 'on', 'brightness': 100}}}]}))
    scene.activate(self.hass, 'scene.test')
    self.hass.block_till_done()
    self.assertTrue(self.light_1.is_on)
    self.assertTrue(self.light_2.is_on)
    self.assertEqual(100, self.light_2.last_call('turn_on')[1].get('brightness'))
