'Test lights go on when there is someone home and the sun sets.'

def test_lights_on_when_sun_sets(self):

    test_time = datetime(2017, 4, 5, 1, 2, 3, tzinfo=dt_util.UTC)
    with patch('homeassistant.util.dt.utcnow', return_value=test_time):
        self.assertTrue(setup_component(self.hass, device_sun_light_trigger.DOMAIN, {device_sun_light_trigger.DOMAIN: {}}))
    light.turn_off(self.hass)
    self.hass.block_till_done()
    test_time = test_time.replace(hour=3)
    with patch('homeassistant.util.dt.utcnow', return_value=test_time):
        fire_time_changed(self.hass, test_time)
        self.hass.block_till_done()
    self.assertTrue(light.is_on(self.hass))
