def test_reload_service(self):
    'Verify that the turn_on service.'
    assert setup_component(self.hass, 'script', {'script': {'test': {'sequence': [{'delay': {'seconds': 5}}]}}})
    assert (self.hass.states.get(ENTITY_ID) is not None)
    assert self.hass.services.has_service(script.DOMAIN, 'test')
    with patch('homeassistant.config.load_yaml_config_file', return_value={'script': {'test2': {'sequence': [{'delay': {'seconds': 5}}]}}}):
        with patch('homeassistant.config.find_config_file', return_value=''):
            reload(self.hass)
            self.hass.block_till_done()
    assert (self.hass.states.get(ENTITY_ID) is None)
    assert (not self.hass.services.has_service(script.DOMAIN, 'test'))
    assert (self.hass.states.get('script.test2') is not None)
    assert self.hass.services.has_service(script.DOMAIN, 'test2')
Verify that the turn_on service.
def test_reload_service(self):
    
    assert setup_component(self.hass, 'script', {'script': {'test': {'sequence': [{'delay': {'seconds': 5}}]}}})
    assert (self.hass.states.get(ENTITY_ID) is not None)
    assert self.hass.services.has_service(script.DOMAIN, 'test')
    with patch('homeassistant.config.load_yaml_config_file', return_value={'script': {'test2': {'sequence': [{'delay': {'seconds': 5}}]}}}):
        with patch('homeassistant.config.find_config_file', return_value=):
            reload(self.hass)
            self.hass.block_till_done()
    assert (self.hass.states.get(ENTITY_ID) is None)
    assert (not self.hass.services.has_service(script.DOMAIN, 'test'))
    assert (self.hass.states.get('script.test2') is not None)
    assert self.hass.services.has_service(script.DOMAIN, 'test2')