'Test message routing to specific target services.'

def test_messages_to_targets_route(self):

    self._setup_notify()
    self.hass.bus.listen_once('notify', self.record_calls)
    self.hass.services.call('notify', 'demo_test_target_name', {'message': 'my    message', 'title': 'my    title', 'data': {'hello': 'world'}})
    self.hass.block_till_done()
    data = self.calls[0][0].data
    assert ({'message': 'my    message', 'target': ['test    target    id'], 'title': 'my    title', 'data': {'hello': 'world'}} == data)
