@patch('open_connect.groups.views.render_to_string')
    def test_successful_addition_message(self, mock):
        group = mommy.make(Group)
        result = self.client.post(
            reverse(
                'group_quick_user_add',
                args=[group.pk]),
            {'users': [self.user1.pk]}
        )
        self.assertIn('1 User Added', result.cookies['messages'].value)
        mock.assert_called_with(
            'groups/notifications/added_to_group_notification.html',
            {'group': group}
        )
Test that the addition of a user creates a proper notification
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/TestQuickAddUserToGroup.test_successful_addition_message