def test_bails_out_if_user_is_already_member(self):
        Subscription.objects.filter(
            user_id=self.user.pk, group=self.group).delete()
        with patch.object(tasks, 'send_system_message') as mock:
            add_user_to_group.delay(
                self.user.pk,
                self.group.pk,
                notification=('test', 'test')
            )
            self.assertEqual(mock.delay.call_count, 0)
Test that nothing happens if a user is already a member.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/TestAddUserToGroup.test_bails_out_if_user_is_already_member