'Setup the demo platform and call service and receive voice.'

def test_setup_component_and_test_service_with_receive_voice_german(self):

    calls = mock_service(self.hass, DOMAIN_MP, SERVICE_PLAY_MEDIA)
    config = {tts.DOMAIN: {'platform': 'demo', 'language': 'de'}}
    with assert_setup_component(1, tts.DOMAIN):
        setup_component(self.hass, tts.DOMAIN, config)
    self.hass.start()
    self.hass.services.call(tts.DOMAIN, 'demo_say', {tts.ATTR_MESSAGE: 'I    person    is    on    front    of    your    door.'})
    self.hass.block_till_done()
    assert (len(calls) == 1)
    req = requests.get(calls[0].data[ATTR_MEDIA_CONTENT_ID])
    (_, demo_data) = self.demo_provider.get_tts_audio('bla', 'de')
    demo_data = tts.SpeechManager.write_tags('265944c108cbb00b2a621be5930513e03a0bb2cd_de_-_demo.mp3', demo_data, self.demo_provider, 'I    person    is    on    front    of    your    door.', 'de', None)
    assert (req.status_code == 200)
    assert (req.content == demo_data)
