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

def test_revision_view(self):

    d = _create_document()
    r = d.current_revision
    r.created = datetime(2011, 1, 1)
    r.reviewed = datetime(2011, 1, 2)
    r.readied_for_localization = datetime(2011, 1, 3)
    r.save()
    url = reverse('wiki.revision', args=[d.slug, r.id])
    response = self.client.get(url)
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(('Revision    id:    %s' % r.id), doc('div.revision-info    li').first().text())
    eq_(d.title, doc('h1.title').text())
    eq_(pq(r.content_parsed)('div').text(), doc('#doc-content    div').text())
    eq_('Created:\n                                                        Jan    1,    2011,    12:00:00    AM', doc('.revision-info    li')[1].text_content().strip())
    eq_('Reviewed:\n                                                                Jan    2,    2011,    12:00:00    AM', doc('.revision-info    li')[5].text_content().strip())
    eq_('Yes', doc('.revision-info    li').eq(4).find('span').text())
    eq_('Yes', doc('.revision-info    li').eq(8).find('span').text())
