'Test lights turn off when everyone leaves the house.'

def test_lights_turn_off_when_everyone_leaves(self):

    light.turn_on(self.hass)
    self.hass.block_till_done()
    self.assertTrue(setup_component(self.hass, device_sun_light_trigger.DOMAIN, {device_sun_light_trigger.DOMAIN: {}}))
    self.hass.states.set(device_tracker.ENTITY_ID_ALL_DEVICES, STATE_NOT_HOME)
    self.hass.block_till_done()
    self.assertFalse(light.is_on(self.hass))
