def test_review_requests_with_private_group_access(self):
        self.client.login(username='grumpy', password='grumpy')
        user = User.objects.get(username='grumpy')

        group = self.create_review_group(invite_only=True)
        group.users.add(user)

        review_request = self.create_review_request(publish=True)
        review_request.target_groups.add(group)

        self.assertTrue(review_request.is_accessible_by(user))
        self.reindex()

        # Perform the search.
        response = self.search(review_request.summary)
        context = response.context
        self.assertEqual(context['hits_returned'], 1)

        results = context['page'].object_list
        self.assertEqual(results[0].content_type(), 'reviews.reviewrequest')
        self.assertEqual(results[0].summary, review_request.summary)
Action with max Q value
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/search/tests.py/SearchTests.test_review_requests_with_private_group_access--crossover with--dataset/ETHPy150Open ifp-uiuc/anna/anna/models/__init__.py/ReinforcementModel.action