def test_only_show_groups_user_is_owner_of(self):
        # pylint: disable=no-value-for-parameter
        self.group.owners.add(self.staff_user)
        self.group.private = True
        self.group.save()
        group2 = Group.objects.create(name='Second group')
        group_request_one = GroupRequest.objects.create(
            user=self.user2, group=self.group)
        group_request_two = GroupRequest.objects.create(
            user=self.user2, group=group2)
        group_request_update_view = views.GroupRequestUpdateView.as_view()
        request = self.request_factory.get('/')
        request.user = self.staff_user
        response = group_request_update_view(request)
        context = response.context_data
        self.assertEqual(context['request_count'], 1)
        open_requests = context['form'].fields['open_requests'].queryset
        self.assertIn(group_request_one, open_requests)
        self.assertNotIn(group_request_two, open_requests)
Normalizes a learner's input to this interaction.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupRequestUpdateViewTest.test_only_show_groups_user_is_owner_of--crossover with--dataset/ETHPy150Open oppia/oppia/extensions/interactions/base.py/BaseInteraction.normalize_answer