def test_user_sees_existing_threads(self):
        user = mommy.make(User)
        self.assertFalse(UserThread.objects.filter(user=user).exists())

        add_user_to_group.delay(user.pk, self.group.pk)
        user_threads = UserThread.objects.filter(user=user)
        self.assertTrue(user_threads.exists())
        self.assertTrue(user_threads.filter(
            thread=self.thread, subscribed_email=True).exists())
Test that a user added to a group can see the existing threads.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/TestAddUserToGroup.test_user_sees_existing_threads