'Load the document view page and verify the title and content.'

def test_document_view(self):

    r = ApprovedRevisionFactory(summary='search    summary', content='Some    text.')
    response = self.client.get(r.document.get_absolute_url())
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(r.document.title, doc('article    h1.title').text())
    eq_(pq(r.document.html)('div').text(), doc('#doc-content    div').text())
    eq_(r.document.get_absolute_url(), doc('link[rel=canonical]').attr('href'))
    eq_('search    summary', doc('meta[name=description]').attr('content'))
