'Test missing platform notify service instance.'

@patch('homeassistant.components.notify.demo.get_service', autospec=True)
def test_no_notify_service(self, mock_demo_get_service):

    mock_demo_get_service.return_value = None
    with self.assertLogs('homeassistant.components.notify', level='ERROR') as log_handle:
        self._setup_notify()
    self.hass.block_till_done()
    assert mock_demo_get_service.called
    self.assertEqual(log_handle.output, ['ERROR:homeassistant.components.notify:Failed    to    initialize    notification    service    demo'])
