'POST to remove_member view removes member'

def test_post_remove_button_removes(self):

    self.group.curators.add(self.user_1.userprofile)
    self.group.accepting_new_members = Group.REVIEWED
    self.group.save()
    group_url = reverse('groups:show_group', prefix='/en-US/', args=[self.group.url])
    next_url = ('%s?filtr=members' % group_url)
    url = reverse('groups:remove_member', prefix='/en-US/', kwargs=dict(url=self.group.url, user_pk=self.user_2.userprofile.pk, status=GroupMembership.PENDING))
    with self.login(self.user_1) as client:
        response = client.post(url, data={'next_url': next_url}, follow=True)
    self.assertTemplateNotUsed(response, 'groups/confirm_remove_member.html')
    membership_filter_form = response.context['membership_filter_form']
    eq_(membership_filter_form.cleaned_data['filtr'], 'members')
    ok_(GroupMembership.objects.filter(group=self.group, userprofile=self.user_2.userprofile, status=GroupMembership.PENDING))
