def test_users_is_string(self):
        users = 'afdsafs@example.com, newusfdafser2@example.com'

        self.assertFalse(
            Invite.objects.filter(email='afdsafs@example.com').exists())
        self.assertFalse(
            Invite.objects.filter(email='newusfdafser2@example.com').exists())

        invite_users_to_group(users, self.user1.pk, self.newgroup.pk)
        self.assertEqual(self.mockemailinvite.delay.call_count, 2)

        self.assertTrue(Invite.objects.filter(
            email='afdsafs@example.com',
            groups__in=[self.newgroup],
            created_by=self.user1
        ).exists())
        self.assertTrue(Invite.objects.filter(
            email='newusfdafser2@example.com',
            groups__in=[self.newgroup],
            created_by=self.user1
        ).exists())
Test adding users via a string of emails
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/InviteUsersToGroupTest.test_users_is_string