'Setup component and load cache and get without mem cache.'

def test_setup_component_load_cache_retrieve_without_mem_cache(self):

    (_, demo_data) = self.demo_provider.get_tts_audio('bla', 'en')
    cache_file = os.path.join(self.default_tts_cache, '265944c108cbb00b2a621be5930513e03a0bb2cd_en_-_demo.mp3')
    os.mkdir(self.default_tts_cache)
    with open(cache_file, 'wb') as voice_file:
        voice_file.write(demo_data)
    config = {tts.DOMAIN: {'platform': 'demo', 'cache': True}}
    with assert_setup_component(1, tts.DOMAIN):
        setup_component(self.hass, tts.DOMAIN, config)
    self.hass.start()
    url = '{}/api/tts_proxy/265944c108cbb00b2a621be5930513e03a0bb2cd_en_-_demo.mp3'.format(self.hass.config.api.base_url)
    req = requests.get(url)
    assert (req.status_code == 200)
    assert (req.content == demo_data)
