'Test to simulate time.'

def simulate_time(self, delta):

    _LOGGER.info('***    simulate    time    change    by    %s:    %s', delta, (self.start_time + delta))
    self.last_delta = delta
    with mock.patch('homeassistant.helpers.condition.dt_util.utcnow', return_value=(self.start_time + delta)):
        _LOGGER.info('now=%s', dt_util.utcnow())
        fire_time_changed(self.hass, (self.start_time + delta))
        self.hass.block_till_done()
        _LOGGER.info('done    with    now=%s', dt_util.utcnow())
