'Setup the demo platform with defaults.'

@patch('os.mkdir', side_effect=OSError(2, 'No    access'))
def test_setup_component_demo_no_access_cache_folder(self, mock_mkdir):

    config = {tts.DOMAIN: {'platform': 'demo'}}
    assert (not setup_component(self.hass, tts.DOMAIN, config))
    assert (not self.hass.services.has_service(tts.DOMAIN, 'demo_say'))
    assert (not self.hass.services.has_service(tts.DOMAIN, 'clear_cache'))
