'Test sending a message with to a notify group.'

def test_send_message_with_data(self):

    run_coroutine_threadsafe(self.service.async_send_message('Hello', title='Test    notification', data={'hello': 'world'}), self.hass.loop).result()
    self.hass.block_till_done()
    assert (self.service1.send_message.mock_calls[0][1][0] == 'Hello')
    assert (self.service1.send_message.mock_calls[0][2] == {'title': 'Test    notification', 'data': {'hello': 'world'}})
    assert (self.service2.send_message.mock_calls[0][1][0] == 'Hello')
    assert (self.service2.send_message.mock_calls[0][2] == {'target': ['unnamed    device'], 'title': 'Test    notification', 'data': {'hello': 'world', 'test': 'message'}})
