def test_user_removed_from_inactive_threads(self):
        user_threads = UserThread.objects.filter(user=self.user)
        uninvolved_thread = self.create_thread(group=self.group)
        self.assertTrue(user_threads.filter(thread=self.thread).exists())
        self.assertTrue(user_threads.filter(thread=uninvolved_thread).exists())

        remove_user_from_group(self.user, self.group)

        self.assertTrue(user_threads.filter(thread=self.thread).exists())
        self.assertFalse(user_threads.filter(thread=uninvolved_thread).exists())
Here we perform the majority of our work on the class.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/TestRemoveUserFromGroup.test_user_removed_from_inactive_threads--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/net/proto2/python/public/reflection.py/GeneratedProtocolMessageType.__init__