'Make sure documents with REDIRECT directives have no vote form.'

def test_redirect_no_vote(self):

    target = DocumentFactory()
    redirect = RedirectRevisionFactory(target=target).document
    redirect_url = redirect.get_absolute_url()
    response = self.client.get((redirect_url + '?redirect=no'))
    doc = pq(response.content)
    assert (not doc('.document-vote'))
