'Requesting deleted doc as superuser returns 404 with restore button'

def test_deleted_doc_returns_404_and_content(self):

    user = create_document_editor_user()
    self.client.login(username=user.username, password='testpass')
    rev = revision(is_approved=True, save=True)
    doc = rev.document
    doc.delete()
    DocumentDeletionLog.objects.create(locale=doc.locale, slug=doc.slug, user=rev.creator, reason='test')
    response = self.client.get(doc.get_absolute_url(), follow=False)
    eq_(404, response.status_code)
    assert ('Reason    for    Deletion' in response.content)
