def test_adding_existing_users(self):
        users = [self.user1.email]
        self.assertFalse(
            self.user1.groups.filter(group=self.newgroup).exists())
        invite_users_to_group(users, self.user1.pk, self.newgroup.pk)
        self.assertTrue(self.mocksysmessage.delay.called_once)
        self.assertTrue(
            self.user1.groups.filter(group=self.newgroup).exists())
Test adding users that already exist
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/InviteUsersToGroupTest.test_adding_existing_users