def test_group_notification_called(self):
        sender = self.create_user()
        thread = self.create_thread(sender=sender)
        newmessage = mommy.make(Message, thread=thread, sender=sender)
        send_message(newmessage.pk)
        self.groupnotify_mock.assert_called_with(newmessage.pk)
Test that connectmessages.tasks.create_group_notifications is called.
dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_tasks.py/SendGroupMessageTest.test_group_notification_called