'POSTing to ban_user_and_cleanup url with a new document.'

def test_post_deletes_new_page(self):

    new_document = create_document(save=True)
    new_revisions = self.create_revisions(num=3, document=new_document, creator=self.testuser)
    data = {'revision-id': [rev.id for rev in new_revisions]}
    self.client.login(username='admin', password='testpass')
    resp = self.client.post(self.ban_testuser_url, data=data)
    eq_(200, resp.status_code)
    deleted_doc = Document.admin_objects.filter(pk=new_document.pk).first()
    eq_(deleted_doc.deleted, True)
