'Filter `pending_members` will be ignored if group is not accepting
new members by request'

def test_filter_pending_ignored_when_accepting_new_members_yes(self):

    self.group.curators.add(self.user_1.userprofile)
    self.group.accepting_new_members = 'yes'
    self.group.save()
    self.group.add_member(self.user_2.userprofile, GroupMembership.MEMBER)
    member_membership = self.group.groupmembership_set.get(userprofile__user=self.user_2)
    url = urlparams(self.url, filtr='pending_members')
    with self.login(self.user_1) as client:
        response = client.get(url, follow=True)
    people = response.context['people'].object_list
    ok_((member_membership in people))
